This is a read-only copy of the MariaDB Knowledgebase generated on 2024-11-17. For the latest, interactive version please visit https://mariadb.com/kb/.

select based upon date...

I dont understand why I can't filter based upon date.... the following command gives an error???

SELECT from ALESSAND WHERE transDATE >= '2010-09-30'; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'from ALESSAND WHERE transDATE >= '2010-09-30'' at line 1

What am I missing here? transDate is a DATE field in the database

Answer Answered by Bryan Alsdorf in this comment.

Hi, You need to specify what columns you want to select, i.e.

SELECT * from ALESSAND WHERE transDATE >= '2010-09-30';
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.