0
sql query
how to get first data from each class in sql?
4 ответов
+ 9
select top 1 from table (mssql)
0
first row, in case i dont have index column
0
i am using pandasql and i still get an error
0
There's a few different methods and it depends on your database.
SQL Server:
Select Top 1 *
From TableName
MySQL:
Select *
From TableName
Limit 1
(I've never used it but apparently PandaSQL uses this method)
Oracle:
Select *
From TableName
Fetch Next 1 Rows Only