搜尋此網誌

2020年8月27日 星期四

常用Git指令

強制push
git push -f


移除已被Git追蹤的檔案
1.專案目錄下git rm -r --cached .
2.修改.gitignore
3.執行git add .

2020年8月24日 星期一

Oracle指令

複製schema和data
create table new_table as select * from old_table;


複製指定欄位data
insert into new_table(column1column2) select (column1column2) from old_table;


跨database複製table
copy from username/password@ip:port/service to username/password@ip:port/service create table using select * from table;


*注意Table Engine和Character Set