W3Cschool
恭喜您成為首批注冊(cè)用戶
獲得88經(jīng)驗(yàn)值獎(jiǎng)勵(lì)
該語句用來對(duì)一個(gè)或多個(gè)表進(jìn)行重命名。
RENAME TABLE tblname TO newtblname
[, tb1name2 TO newtblname …];
參數(shù) |
描述 |
---|---|
tblname |
原表名。 |
newtblname |
新表名。 |
tblname TO newtblname [, tb1name2 TO newtblname …]; |
多個(gè)表重命名時(shí),使用“,”隔開。 |
create table t1(c1 int);
create table t2(c1 int);
rename table t1 to t11;
rename table t11 to t111, t2 to t22;
rename table t111 to t1111, t1111 to t1;
Copyright©2021 w3cschool編程獅|閩ICP備15016281號(hào)-3|閩公網(wǎng)安備35020302033924號(hào)
違法和不良信息舉報(bào)電話:173-0602-2364|舉報(bào)郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號(hào)
聯(lián)系方式:
更多建議: