sql 达人指点一下错误句
SELECT TOP 10 * FROM table WHERE name LIKE '$k%' AND id NOT IN(SELECT TOP 10 id FROM table WHERE name LIKE '$k%' ORDER BY LEFT(ltrim(name),1) ORDER BY uptime DESC)
SELECT TOP 10 * FROM table WHERE name LIKE '$k%' AND id NOT IN(SELECT TOP 10 id FROM table WHERE name LIKE '$k%' ORDER BY LEFT(ltrim(name),1)) ORDER BY uptime DESC
[解决办法]
SELECT TOP 10 * FROM table WHERE name LIKE '$k%' AND id NOT IN(SELECT TOP 10 id FROM table WHERE name LIKE '$k%' ORDER BY LEFT(ltrim(name),1),uptime DESC)
[解决办法]
SELECT TOP 10 * FROM table WHERE name LIKE '$k%' AND id NOT IN(SELECT TOP 10 id FROM table WHERE name LIKE '$k%' ORDER BY LEFT(ltrim(name),1),uptime DESC)
[解决办法]