Commit 578a147f authored by Sylvain's avatar Sylvain

🐛 Driver SQLServer

parent 5134b082
......@@ -16,6 +16,7 @@ class Sqlsrv extends Driver
private $queries = [
'tables' => "SELECT * FROM information_schema.tables ORDER BY TABLE_NAME ASC",
'schema' => "SELECT object_name(object_id) as table_name, type_name(system_type_id) as type, object_definition(default_object_id) as default_value, * FROM sys.columns;",
'columns' => "SELECT object_name(object_id) as table_name, type_name(system_type_id) as type, object_definition(default_object_id) as default_value, * FROM sys.columns;",
'select' => "SELECT TOP 25 * FROM {TABLE}",
'insert' => "INSERT INTO `{TABLE}` ({COLUMNS_NAMES}) VALUES ({COLUMNS_VALUES});",
'update' => "UPDATE `{TABLE}` AS {ALIAS} SET {NAMES_VALUES} WHERE {ALIAS}.`{PK_NAME}` = {ID};",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment