0

sql query

how to get first data from each class in sql?

19th Oct 2019, 7:48 AM
강럴기
강럴기 - avatar
6 odpowiedzi
+ 9
select top 1 from table (mssql)
19th Oct 2019, 8:38 AM
r8w9
r8w9 - avatar
0
first row, in case i dont have index column
19th Oct 2019, 8:04 AM
강럴기
강럴기 - avatar
0
i am using pandasql and i still get an error
19th Oct 2019, 8:58 AM
강럴기
강럴기 - avatar
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
20th Oct 2019, 5:55 AM
Chris Hansen