mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-04 00:10:25 +08:00
refactor:获取表索引,默认过滤主键索引
This commit is contained in:
@@ -44,6 +44,7 @@ WHERE
|
||||
SELECT
|
||||
database ()
|
||||
)
|
||||
AND index_name != 'PRIMARY'
|
||||
AND table_name = ?
|
||||
ORDER BY
|
||||
index_name asc,
|
||||
|
||||
Reference in New Issue
Block a user