建立表格:create table contact_list asselect givenname||', '||substr(familyname,1,1)||' : '||street||', '||suburb||' ' MEMBER, phone "Home Phone"from member;添加Mobile phone number:首先要建立新的column:a 展开
建立表格:create table contact_list asselect givenname||', '||substr(familyname,1,1)||' : '||street||', '||suburb||' ' MEMBER, phone "Home Phone"from member;添加Mobile phone number:首先要建立新的column:alter table contact_listadd "Mobile phone number"varchar2(15);(建议所有varchar改为varchar2,两者目前是等价,但今后的oracle版本varchar可能改为其他用途)然后修改数据:update contact_listset "Mobile phone number"='0427 123 456'where name='Susie Hawkins';update contact_listset "Mobile phone number"='0428 231 312'where name='Steven Hawkins';(不知道这里的name column哪里来的?在第一问的表格中没有) 收起