File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 9
9
SELECT TABLE_NAME
10
10
FROM INFORMATION_SCHEMA.TABLES
11
11
WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_SCHEMA = '%s'
12
- AND TABLE_ROWS < 200 AND TABLE_ROWS > 35;
12
+ AND TABLE_ROWS < 300 AND TABLE_ROWS > 35;
13
13
` , db )
14
14
}
15
15
SHOW_CREATE = func (dbName , tableName string ) string {
16
16
return fmt .Sprintf ("SHOW CREATE TABLE %s.%s;" , dbName , tableName )
17
17
}
18
18
SELECT_COLUMNS = func (tableName string ) string {
19
- return fmt .Sprintf ("SELECT COLUMN_NAME, DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME='%s';" , tableName )
19
+ return fmt .Sprintf ("SELECT DISTINCT COLUMN_NAME, DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME='%s';" , tableName )
20
20
}
21
21
DROP_DB = func (dbName string ) string {
22
22
return fmt .Sprintf ("DROP DATABASE IF EXISTS %s" , dbName )
You can’t perform that action at this time.
0 commit comments