SQL to Select a random row from a database table Download Entire Folder using Wget Command in Linux

This example shows the MS-SQL (Microsoft SQL-Server) counterpiece for the limit command of MySQL.

-- MS-SQL / SQL-Server 2005
SELECT TOP 15 * FROM ExampleTable WHERE Active = 1 ORDER BY Id DESC

-- MySQL
SELECT * FROM ExampleTable WHERE Active = 1 LIMIT 0,15 ORDER BY Id DESC

Cevap bırak

(gerekli)

(gerekli)

Powered by WP Hashcash

© 2011 Şimşek Mert Suffusion theme by Sayontan Sinha