20 public static function getListColumn($sTable){
21 return 'select f.rdb$field_name from rdb$relation_fields f
22 join rdb$relations r on f.rdb$relation_name = r.rdb$relation_name
23 and r.rdb$view_blr is null
24 and (r.rdb$system_flag is null or r.rdb$system_flag = 0)
26 WHERE f.rdb$relation_name=\''.$sTable.
'\' ';
28 public static function getStructure($sTable){
29 return 'select f.rdb$field_name from rdb$relation_fields f
30 join rdb$relations r on f.rdb$relation_name = r.rdb$relation_name
31 and r.rdb$view_blr is null
32 and (r.rdb$system_flag is null or r.rdb$system_flag = 0)
34 WHERE f.rdb$relation_name=\
''.$sTable.
'\' ';
36 public static function getListTable(){
37 return 'select rdb$relation_name from rdb$relations where rdb$view_blr is null and (rdb$system_flag is null or rdb$system_flag = 0);
';
39 public static function getLimit($sRequete,$iOffset,$iLimit){
40 return $sRequete.' LIMIT
'.$iOffset.',
'.$iLimit;
42 public static function getLastInsertId(){
43 return 'SELECT LAST_INSERT_ID()
';