mirror of
https://gitee.com/tawords/tawords-docs
synced 2025-09-02 16:03:27 +08:00
2021.08.06
This commit is contained in:
9
docs/manual/start/migration.md
Normal file
9
docs/manual/start/migration.md
Normal file
@@ -0,0 +1,9 @@
|
||||
### 修改数据库表前缀
|
||||
|
||||
> 以下内容非最终代码,请不要直接复制运行。
|
||||
|
||||
```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_%';
|
||||
```
|
Reference in New Issue
Block a user