1
0
mirror of https://gitee.com/tawords/tawords-docs synced 2025-01-11 11:58:14 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
tawords-docs/docs/manual/start/migration.md
2021-08-07 00:54:13 +08:00

10 lines
284 B
Markdown

### 修改数据库表前缀
> 以下内容非最终代码,请不要直接复制运行。
```sql
Select CONCAT( 'ALTER TABLE ', table_name, 'RENAME TO bdc_', substring(table_name,CHAR_LENGTH('oldpre')+1)),';' )
FROM information_schema.tables
Where table_name LIKE 'oldpre_%';
```