简体   繁体   中英

An error occured submitting the edit - SQL

I am getting errors trying the answer a question and posting a SQL query.

The unhelpful error message is: An error occured submitting the edit

Here is what I tried to submit:

select empname, phone, email 
from employee
where emptype = 'PT' 
and salary between 30000 and 50000
order by city, faculty, empid;

Why could I post it here? I did mark it as code {} (the 4 space indent).

It seems that the error was actually caused in the text I used to describe the query. I had the phrase 'select list' but when I reworded that it work. But that phrase works here - strange.

You need to assign a type to ORDER BY either ASC or DESC

ORDER BY column1, column2, ... ASC|DESC;

Go to W3S

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM