摘要:
摘自:http://www.tsnc.edu.cn/tsnc_wgrj/doc/sed.htm删除:d命令$ sed '2d' example-----删除example文件的第二行。$ sed '2,$d' example-----删除example文件的第二行到末尾所有行。$ sed '$d' example-----删除example文件的最后一行。$ sed '/test/'d example-----删除example文件所有包含test的行。替换:s命令$ sed 's/test/mytest/g' e 阅读全文
摘要:
习题地址:http://sqlzoo.net/4.htm表结构: msp(name, party, constituency) party(code, name, leader) msp.party = party.code1a.One MSP was kicked out of the Labour party and has no party. Find him.select name from msp where party is null1b.Obtain a list of all parties and leaders.select name,leader f... 阅读全文