MySQL Forums
Forum List  »  Chinese

select a,* from XXX 报错
Posted by: kevin.tan tann
Date: October 05, 2024 09:02PM

mysql> SELECT LENGTH(CAST(emp_no AS CHAR)) as emp_no_length,* FROM salaries limit 10;
运行时报错
ERROR 1064 (42000): 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 '* FROM salaries limit 10' at line 1

mysql> SELECT LENGTH(CAST(emp_no AS CHAR)) as emp_no_length,salaried.* FROM salaries limit 10;
运行正常

Options: ReplyQuote


Subject
Views
Written By
Posted
select a,* from XXX 报错
224
October 05, 2024 09:02PM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.