php - How to query and select * where a value is a INT? -
this sql far , nothing working.
$st = db::getinstance()->query("select * users group = 1 order joined asc");
all want select * table users group = 1 (order by...) problem group column int. cannn't retrieve data it. if try group = '1'
is there function/way through issue? thanks!
group reserved word in many sql implementation. try using users.group = 1 .
- oracle sql reserved words : https://docs.oracle.com/database/121/sqlrf/ap_keywd001.htm#sqlrf55621
- mysql reserved words : http://dev.mysql.com/doc/refman/5.6/en/reserved-words.html
- mssql reserved words : http://msdn.microsoft.com/en-us/library/ms189822.aspx
Comments
Post a Comment