[精讚] [會員登入]
565

資料表更改為多個primary key,

MariaDB [database]> describe TABLENAME; 想由本來是兩個PRIMARY KE

分享此文連結 //n.sfs.tw/12189

分享連結 資料表更改為多個primary key,@igogo
(文章歡迎轉載,務必尊重版權註明連結來源)
2018-02-09 15:24:42 最後編修
2018-02-09 15:26:54 By igogo
 

 

MariaDB [database]> describe TABLENAME;

 

想由本來是兩個PRIMARY KEY 更改為 三個

 MariaDB [database]>ALTER TABLE items DROP INDEX `PRIMARY`, ADD PRIMARY KEY (FIELD1, FIELD2,FIELD3);

END

你可能感興趣的文章

[shell script] 批次判斷domain name 正解設定 判斷dns 正解設定

使用expect及 openssl 產生SSL 憑證簽署要求 每年都要製做tls 憑證 二十幾張, 此語法利用expect 產生私錀及憑證請求檔 #!/usr/bin/expect

網站無障礙規範 https://accessibility.ncc.gov.tw/News/Detail/3238?Category=4

windows ad 如何得知 dn 值 如何得知 windows ad 上的使用者dn 值 https://support.symantec.com/en_US

雲端校務系統與OPENLDAP帳號整合(2) openldap,雲端校務

[web]空氣品質嵌入頁面語法 空氣品質, aqi, ajax

隨機好文

[vue.js] 動態的props 做parent-child components 雙向綁定 vue.js props components camel-case

python 的RE python re

臺中市校務雲端系統與Windows AD帳號整合(1) active directory,ldaps,雲端校務系統

如何在docker 的nginx 做另一個container的反向代理 環境 docker 中一container 跑 nginx 對外服務80 port, http://server 另一c

Thread java thread