Viewing 15 posts - 196 through 210 (of 234 total)
Very nice question. Nice SQL inject with a side effect.
I hope I will never use something like this one.
February 3, 2010 at 4:32 am
bitbucket-25253 (2/1/2010)
February 1, 2010 at 10:35 am
Christian Buettner-167247 (2/1/2010)
But that is probably true for most of us - sometimes we just...
February 1, 2010 at 4:46 am
paul.goldstraw (2/1/2010)
February 1, 2010 at 4:24 am
danemery (1/29/2010)
January 29, 2010 at 8:01 am
bitbucket-25253 (1/29/2010)
January 29, 2010 at 7:55 am
kaspencer (1/29/2010)
And Editors: how about fining the writers of bad questions - demoting them by two ranks eh? That'll teach 'em!
And back again: What about trying the script by editors?...
January 29, 2010 at 2:36 am
As to suggestions about trying against different versions, bear in mind that the question might have been contributed by someone without easy access to anything above 2000 or may have...
January 29, 2010 at 2:30 am
And what about the answer "Any number, 1" or better "Nonnegative number, 1".
This is correct in all situations and after any scripts run in the past by the same connection.
January 29, 2010 at 1:31 am
Just another QotD with correct answer that is correct only in some settings.
I wrote only one question (I am lazy), but I tried the script on more versions of SQL...
January 29, 2010 at 1:20 am
mike.anderson 52709 (1/27/2010)
Trying this out, I still get execution plans that are on the face of it identical (they must be different, because the result sets are different); the cost...
January 27, 2010 at 8:16 am
mike.anderson 52709 (1/27/2010)
honza.mf (1/27/2010)
CirquedeSQLeil (1/27/2010)
honza.mf (1/27/2010)
The first variant with IN can be more effective, it allways depend on data. Compare two queries without any knowledge about structure...
January 27, 2010 at 7:21 am
CirquedeSQLeil (1/27/2010)
honza.mf (1/27/2010)
The first variant with IN can be more effective, it allways depend on data. Compare two queries without any knowledge about structure of tables, indexes,...
January 27, 2010 at 12:37 am
I answered OK, but...
The first variant with IN can be more effective, it allways depend on data. Compare two queries without any knowledge about structure of tables, indexes, possible data...
January 27, 2010 at 12:11 am
vk-kirov (12/14/2009)
In SQL Server, an empty string and a NULL value are not the same.
As far as I know, NULLs and empty strings are equal in Oracle. But in SQL...
December 14, 2009 at 2:19 pm
Viewing 15 posts - 196 through 210 (of 234 total)