开发者

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

开发者 https://www.devze.com 2023-03-31 14:33 出处:网络
Returns a syntax error, but I dont understand where is the mistake... NOTE: dtadd is a TIMESTAMP S开发者_开发问答ELECT codigo, quantidade, preco_unitario

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

精彩评论

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