这个查询:SUBSTR对SQL查询
SELECT substr(d.title,0,7)
FROM orders_total d, orders o
WHERE d.orders_id = o.orders_id
给了我这个错误:
#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '(d . title , '0' , '7') from orders_total d , orders o
它的工作原理没有SUBSTR,但我不能让它使用它。
SUBSTR是SUBSTRING的同义词 – Cyclonecode