[SQL ] 想將sqlite的table丟進MySQL

看板Database作者 (mimic)時間16年前 (2010/02/26 09:14), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
這個問題是這樣的~ 我想比較兩個sqlite的table資訊~ 找到mysqldiff這個open sourse的比較方式 但是發現sqlite 的table schema 是沒有attribute's data type 所以當我input sqlite的talbe 進去MySQL時 就會發生錯誤(他要我輸入data type for each attribute) 與其我亂assign data type to each attribute 在MySQL的syntax下 有沒有辦法對那些沒有assign data type 的attribute assign一個default type 給他 例如 sqlite schema CREATE TABLE T( t primary key, o not null, p not null); 可以給每個 attribute 一個default type 讓我可以把這個talbe schema input into MySQL. 現在我的作法 只能遇到primary key就放integer 其他都assign char..... 請問有什麼方向可以參考?? 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 71.95.52.50
文章代碼(AID): #1BXo1Zsl (Database)