标签:name orm select tab schema alter where 批量修改 not
SELECTIF (
COLUMN_DEFAULT IS NULL,
" ",
concat(
" DEFAULT ",
IF (
COLUMN_DEFAULT = ‘‘,
"‘‘",
COLUMN_DEFAULT
)
)
),
IF (
IS_NULLABLE = ‘NO‘,
" NOT NULL ",
‘‘
),
" COMMENT ",
" ",
"‘",
LEFT (
COLUMNS .COLUMN_NAME,
instr(COLUMNS .COLUMN_NAME, ‘F‘) - 1
),
"‘;"
)
FROM
information_schema. COLUMNS
WHERE
TABLE_NAME = ‘j_data_wa_grgz‘
AND COLUMNS .COLUMNNAME LIKE ‘%F%‘
标签:name orm select tab schema alter where 批量修改 not
原文地址:http://blog.51cto.com/changmen/2301147