deploy.sh 文件内容如下 #!/bin/bash #scp -r ./* root@XXXXX:/root/sunSH/xadserver/ function getdir(){ for element in `ls $1` do dir_or_file=$1"/"$element B='doc' if [[ $dir_or_file == *$B* ]] then echo "skip---------------->>"$dir_or_fil…
一:在新表已经建立好的情况下 1,拷贝所有的字段 insert into new_table select * from old_table 2,拷贝部分字段表 insert into new_table(id,name,sex) select id,name,sex from old_table 3,拷贝部分的行 insert into new_table select * from old_table where id="1" 4,拷贝部分的行和字段 insert into n…