close

1.

來自同資料庫不同表,如cities表的name

insert into t1 (name1) select name from cities 

2.更新來自別的table

update cities set name=(select name from users limit 1) where id = 1

3.將表格資料匯出

select * into outfile 'D:\\city.txt' from cities

 

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 學習程式 的頭像
    學習程式

    程式學習日記,如果我幫助了你請讓我知道

    學習程式 發表在 痞客邦 留言(0) 人氣()