+Firebird

This commit is contained in:
Sven 2006-08-10 10:20:59 +00:00
parent 63897ac9e2
commit 633860e27b

23
SQL.mw
View File

@ -1,3 +1,22 @@
=Firebird=
==Meta-Daten abfragen==
===Liste der Prozeduren===
*SELECT * FROM RDB$PROCEDURES;
===Liste der Spalten in einer Tabelle===
*SELECT RDB$FIELD_NAME FROM RDB$RELATION_FIELDS WHERE RDB$RELATION_NAME='<table>';
===Liste der Tabellen===
*SELECT RDB$RELATION_NAME FROM RDB$RELATIONS;
===Liste der User===
*SELECT DISTINCT RDB$USER FROM RDB$USER_PRIVILEGES;
===Liste der Userrechte===
*SELECT * FROM RDB$USER_PRIVILEGES;
=MSSQL=
MS SQL unterstützt auch das Information_schema Schema.
@ -13,7 +32,7 @@ MS SQL unterstützt auch das Information_schema Schema.
*SELECT * FROM information_schema.routines; (ab MySQL 5)
===Liste der Spalten in einer Tabelle===
*SHOW COLUMNS FROM $table;
*SHOW COLUMNS FROM <table>;
*SELECT * FROM information_schema columns; (ab MySQL 5)
===Liste der Tabellen===
@ -61,4 +80,4 @@ MS SQL unterstützt auch das Information_schema Schema.
*PRAGMA database_list;
===Felder einer Tabelle===
*PRAGMA table_info($table_name);
*PRAGMA table_info(<table_name>);