This shows you the differences between two versions of the page.
dev:sql:functions:current_row [2010/07/09 16:57] tdo |
dev:sql:functions:current_row [2016/06/28 22:38] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{page>:top_add&nofooter&noeditbtn}} | ||
- | <html><div align="center"><span style="color:red">DRAFT</span></div></html> | ||
- | ====== Omnidex SQL Function: $CURRENT_ROW ====== | ||
- | {{page>:sql_bar&nofooter&noeditbtn}} | ||
- | ===== Description ===== | ||
- | Returns the current row as an ascending number from starting with 1. | ||
- | This number is assigned after all other clauses are processed. | ||
- | |||
- | This function may only be used as a select-item. It may NOT be used in a WHERE , GROUP BY, ORDER BY, or HAVING clause. | ||
- | |||
- | The return data type is INTEGER. | ||
- | |||
- | ===== Syntax ===== | ||
- | $CURRENT_ROW | ||
- | ===== Example ===== | ||
- | ==== Example 1 ==== | ||
- | <code> | ||
- | select $current_row, company from customers | ||
- | |||
- | $CURRENT_ROW COMPANY | ||
- | ------------ ------------------------------------- | ||
- | |||
- | 1 Dynamic Information Systems Corporation | ||
- | |||
- | 2 The Bovaird Supply Company | ||
- | |||
- | 3 Graham Container Companies | ||
- | |||
- | ... | ||
- | </code> | ||
- | |||
- | |||
- | |||
- | |||
- | {{page>:bottom_add&nofooter&noeditbtn}} |