In ANSI / ISO SQL, double quotes delimit keywords when used as column names; String literals are limited to single quotes:
select "from" = 'from' from foo
Microsoft SQL Server allows you to use square brackets instead of double quotes:
select [from] = 'from' from foo
But either way, this creates a terrible mess for your code (try reading above for someone else.)
If I need a column to organize the results, I usually call it "sequence_number" or "sort_sequence".
Nicholas Carey Jan 17 '11 at 19:00 2011-01-17 19:00
source share