开发者

Whats wrong in this SELECT FROM WHERE ORDER BY mysql syntax?

Returns a syntax error, but I dont understand where is the mistake... NOTE: dtadd is a TIMESTAMP

S开发者_开发问答ELECT codigo, quantidade, preco_unitario
FROM romaneios_detalhes 
WHERE id_romaneio = '.$idr.' 
SORT BY dtadd ASC


It should be ORDER BY not SORT BY.


Use ORDER BY instead of SORT BY


First, that should be ORDER BY

Secondly, the points around $idr .. are they just an artefact from copying them out of a PHP script?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜