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 * `EMP`' at line 1
时间: 2023-07-23 21:15:16 浏览: 267
一步一步学 Linq to sql
The error message indicates that there is a syntax error in your SQL query. In this case, it seems that you are using the `FROM` keyword incorrectly. The correct syntax for a basic `SELECT` statement is:
```
SELECT column1, column2, ...
FROM table_name
```
Make sure you specify the table name after the `FROM` keyword, not an asterisk (*). It should be something like:
```
SELECT *
FROM EMP;
```
If you still encounter the error, please provide more information about your query or the table structure so that I can assist you further.
阅读全文