mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 16:00:25 +08:00
* fix: 达梦数据库连接修复,以支持带特殊字符的密码和schema * fix: oracle bug修复 * feat: dbms支持sqlite * fix: dbms 修改字段名bug
21 lines
583 B
SQL
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 |