SQL Inventory

List of all SQL mentioned in the code..

ValueCountFile:Line
'SELECT 1 FROM ' $this->quotekey($table) . ' LIMIT 1'
1
  • /lib/db/sql.php
'SHOW columns FROM `' $this->dbname '`.`' $table '`'
1
  • /lib/db/sql.php
'SELECT ' 'C.COLUMN_NAME AS field,' 'C.DATA_TYPE AS type,' 'C.COLUMN_DEFAULT AS defval,' 'C.IS_NULLABLE AS nullable,' 'T.CONSTRAINT_TYPE AS pkey ' 'FROM INFORMATION_SCHEMA.COLUMNS AS C ' 'LEFT OUTER JOIN ' 'INFORMATION_SCHEMA.KEY_COLUMN_USAGE AS K ' 'ON ' 'C.TABLE_NAME=K.TABLE_NAME AND ' 'C.COLUMN_NAME=K.COLUMN_NAME AND ' 'C.TABLE_SCHEMA=K.TABLE_SCHEMA ' . ($this->dbname ? ('AND C.TABLE_CATALOG=K.TABLE_CATALOG ') : '') . 'LEFT OUTER JOIN ' 'INFORMATION_SCHEMA.TABLE_CONSTRAINTS AS T ON ' 'K.TABLE_NAME=T.TABLE_NAME AND ' 'K.CONSTRAINT_NAME=T.CONSTRAINT_NAME AND ' 'K.TABLE_SCHEMA=T.TABLE_SCHEMA ' . ($this->dbname ? ('AND K.TABLE_CATALOG=T.TABLE_CATALOG ') : '') . 'WHERE ' 'C.TABLE_NAME=' $this->quote($table) . ($this->dbname ? (' AND C.TABLE_CATALOG=' $this->quote($this->dbname)) : '')
1
  • /lib/db/sql.php
'SELECT c.column_name AS field, ' 'c.data_type AS type, ' 'c.data_default AS defval, ' 'c.nullable AS nullable, ' '(SELECT t.constraint_type ' 'FROM all_cons_columns acc ' 'LEFT OUTER JOIN all_constraints t ' 'ON acc.constraint_name=t.constraint_name ' 'WHERE acc.table_name=' $this->quote($table) . ' ' 'AND acc.column_name=c.column_name ' 'AND constraint_type=' $this->quote('P') . ') AS pkey ' 'FROM all_tab_cols c ' 'WHERE c.table_name=' $this->quote($table)
1
  • /lib/db/sql.php
'SELECT ' $fields ' FROM ' $this->table1
  • /lib/db/sql/mapper.php
'SELECT ' . ($lmt 'TOP ' . ($ofs $lmt) : '') . ' ROW_NUMBER() ' 'OVER (' $order ') AS rnum,'
1
  • /lib/db/sql/mapper.php
'SELECT * FROM (' $sql ') x WHERE rnum > ' . ($ofs)
1
  • /lib/db/sql/mapper.php
'SELECT COUNT(*) AS ' $this->db->quotekey('_rows') . ' ' 'FROM (' $sql ') AS ' $this->db->quotekey('_temp')
1
  • /lib/db/sql/mapper.php
'DELETE FROM ' $this->table . ($filter ' WHERE ' $filter '') . ';'
1
  • /lib/db/sql/mapper.php
'DELETE FROM ' $this->table ' WHERE ' $filter ';'
1
  • /lib/db/sql/mapper.php
'UPDATE ' $this->table ' SET ' $pairs $filter2
  • /lib/db/sql/mapper.php
  • /lib/db/sql/mapper.php