在sqlplus 里有兩個(gè)表,number表字段有tel_no, gh表字段有old_tel,new_tel, 兩個(gè)表的tel_no和old_tel一一對應(yīng),現(xiàn)在我需要把number表里的tel_no更新成 gh里的new_tel 應(yīng)該如何寫語句 update number set tel_no=gh.new_tel from number,gh where number.tel_no=gh.old_new 我寫的這個(gè)語句執(zhí)行不了,請各位指點(diǎn)一下,應(yīng)該如何做? 不勝感謝~ :?:
| | |
|