0
Can someone help me?
I have the following query:
select coluna1, coluna2, coluna3 from tabela
where coluna2 > 0
order by coluna3 desc
limit 10
And when I execute the following error appears:
Msg 102, Level 15, State 1, Line 6 Incorrect syntax near 'limit'-
SELECT * FROM table WHERE column2 >= '0' ORDER BY column3 DESC LIMIT 0,10
– Sr. André Baill
It wouldn’t be like this?
– Sr. André Baill
I tested it this way and kept making the same mistake
– Lorenna Christna
Post the whole code, please.
– Sr. André Baill
Your Query looks right, are you really using mysql? is not an mssql or sql server?
– Marcel
I think you are using another database other than Mysql. If it is SQL Server it is
top
.– Diego Souza
I was able to solve the problem using Diego Souza’s solution. Thank you for your help!
– Lorenna Christna