Files
mayfly-go/server/internal/db/dbm/dbi/metasql/sqlite_meta.sql
zongyangleo 9a59749763 !86 dbms支持sqlite和一些bug修复
* fix: 达梦数据库连接修复,以支持带特殊字符的密码和schema
* fix: oracle bug修复
* feat: dbms支持sqlite
* fix: dbms 修改字段名bug
2024-01-19 08:59:35 +00:00

21 lines
583 B
SQL

--SQLITE_TABLE_INFO 表详细信息
select tbl_name as tableName,
'' as tableComment,
'' as createTime,
0 as dataLength,
0 as indexLength,
0 as tableRows
FROM sqlite_master
WHERE type = 'table'
and name not like 'sqlite_%'
ORDER BY tbl_name
---------------------------------------
--SQLITE_INDEX_INFO 表索引信息
select name as indexName,
`sql` as indexSql,
'normal' as indexType,
'' as indexComment
FROM sqlite_master
WHERE type = 'index'
and tbl_name = '%s'
ORDER BY name