简体   繁体   English

提交编辑时发生错误-SQL

[英]An error occured submitting the edit - SQL

I am getting errors trying the answer a question and posting a SQL query. 我在尝试回答问题并发布SQL查询时遇到错误。

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). 我确实将其标记为代码{}(4个空格缩进)。

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 ASC或DESC

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

Go to W3S 前往W3S

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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