Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

select 1 from orders

select 1 from table will return the constant 1 for every row of the table. It's useful when you want to cheaply determine if record matches your where clause and/or join.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #select #orders
ADD COMMENT
Topic
Name
1+1 =