1.设置table表的主键为UUID:
update table
set id = UPPER(REPLACE(UUID(),'-',""))
2.查询数据库db中所有表的基本信息:
select * from information_schema.tables
where table_schema="db"
3.查询当前数据库所有的***视图名称***:
SHOW FULL tables where Table_type='VIEW'
4.查询所有视图的相关信息:
SHOW table status where COMMENT='VIEW'
5.查询某一个表的基本信息(字段):
select * from information_schema.columns
where table_name = 'your_tables' ;
6.字符串拼接:
update your_tables set url=CONCAT("\\res\\creditfile1\\",URL)