Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use the between function in phpMyAdmin

Tags:

phpmyadmin

How do you use the "between" function on phpMyAdmin search function?

enter image description here

I've tried

 2012-11-29 AND 2012-11-30

and

 '2012-11-29' AND '2012-11-30'

and when I press "go" it returns back to this screen. There are definetly results, because if I set the date to = 2012-11-29 I get a result.

like image 288
Laurence Avatar asked Nov 20 '12 15:11

Laurence


People also ask

What is the function of phpMyAdmin?

phpMyAdmin is a free software tool written in PHP that is intended to handle the administration of a MySQL or MariaDB database server. You can use phpMyAdmin to perform most administration tasks, including creating a database, running queries, and adding user accounts.

Does phpMyAdmin use MySQL?

phpMyAdmin is a free software tool written in PHP, intended to handle the administration of MySQL over the Web. phpMyAdmin supports a wide range of operations on MySQL and MariaDB.

Is it necessary to use phpMyAdmin?

But perhaps one of the most compelling reasons for using phpMyAdmin is that many hosting companies supply it as the default way to administer MySQL. Used together with a local installation of MySQL, phpMyAdmin makes it easy to test your database structure and queries before going live on the internet.


2 Answers

Well, for normal fields you should use comma to separate values. For example, to include BETWEEN 4 AND 5 clause in your query, just write 4, 5 in that input. In your case entering 2012-11-29, 2012-11-30 should do the trick.

Interestingly, the current version of phpMyAdmin (3.5.1) just doesn't let comma into a datetime column-related input.

like image 119
raina77ow Avatar answered Oct 07 '22 11:10

raina77ow


You need to use , between dates, since the file doesn't let you to enter non-numerical characters, so you can copy , from somewhere else and paste it PHPMyAdmin.

like image 31
Mehrdad Abed Avatar answered Oct 07 '22 10:10

Mehrdad Abed