Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
dev:sql:select [2009/11/30 16:07]
tdo
— (current)
Line 1: Line 1:
-{{page>:​top_add&​nofooter&​noeditbtn}} 
-<​html><​div align="​center"><​span style="​color:​red">​DRAFT</​span></​div></​html>​ 
  
-====== Omnidex SQL: SELECT ====== 
- 
- 
-===== Description ===== 
-===== Syntax ===== 
- 
-  SELECT expression_list 
-      FROM data_source 
-      [ WHERE predicates ] 
-      [ GROUP BY expression_list ] 
-          [ HAVING predicates ] 
-      [ ORDER BY expression_list ] 
-      [ ON [ CURSOR ] cursor_no ] | [ INSTANCE instance_no ] 
-      [ WITH options ] 
- 
-  expression_list 
-         [ DISTINCT column | TOP n | EVERY n | RANDOM n] 
-         [ UNION [ALL] | INTERSECT | EXCEPT ] 
-         [ * ] | [ table.]column [column_alias] [, table.column ... ] 
-         [ (subquery) ] 
-         [ aggregate_function( [table.]column ) 
-          
-  FROM table1 [ table_alias ] [, table2 [ table_alias ] [ $omnidex ] ] 
-       [ LFET | RIGHT ] 
-           [ OUTER ] 
-           [ JOIN ] 
-           [ , table2 ] 
-           [ ON table1.linkfield = table2.linkfield ] 
- 
-  WHERE  
-       [ EXISTS (subquery) ] 
-       [ IN (subquery) ] 
- 
-  GROUP BY 
- 
-  HAVING [ left_operand operator subquery ] 
-         [ left_operaand IN (subquery) ] 
- 
-  ORDER BY [column | position ] [, column | position ] 
- 
-===== Discussion ===== 
- 
-== FROM data_source == 
-== WHERE Clause == 
-== GROUP BY Clause == 
-== HAVING Clause == 
-== ORDER BY Clause == 
-== WITH options == 
- 
-===== Examples ===== 
- 
-==== Simple ==== 
- 
-  > select * from mytable 
- 
-==== select columns ==== 
- 
-  > select company, contact from mytable 
-{{page>:​bottom_add&​nofooter&​noeditbtn}} 
 
Back to top
dev/sql/select.1259597247.txt.gz ยท Last modified: 2012/10/26 14:25 (external edit)