We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c7699b commit 4f4bdfdCopy full SHA for 4f4bdfd
gen/src/main/java/com/gitee/gen/gen/mysql/MySqlColumnSelector.java
@@ -32,7 +32,8 @@ public class MySqlColumnSelector extends ColumnSelector {
32
" EXTRA AS 'Extra', " +
33
" COLUMN_COMMENT AS 'Comment' " +
34
" FROM information_schema.`COLUMNS` " +
35
- " WHERE 1=1 AND TABLE_SCHEMA = '%s' AND TABLE_NAME = '%s' ";
+ " WHERE 1=1 AND TABLE_SCHEMA = '%s' AND TABLE_NAME = '%s' " +
36
+ " ORDER BY ORDINAL_POSITION ";
37
38
public MySqlColumnSelector(GeneratorConfig generatorConfig) {
39
super(generatorConfig);
0 commit comments