[b]sql [/b]
[b]问题补充:[/b]
用[b]事务[/b] 如何 写 踢重
[b]问题补充:[/b]
如果 我想要用[color=red]存储过程[/color]写一个 踢重 该怎么写啊
不好意思啊 我对oracle不是很熟悉 、请大家多多见谅呀
insert into temptab select distinct mobile from bao_mobile_temp;
drop table bao_mobile_temp;
rename temptab to bao_mobile_temp;
distinct
使用DISTINCT如何去掉重复记录
select distinct(id),name from table
你可以试试,建议原始表的数据不要删,再搞一张表出来.
别忘了给我加分噢,呵呵...
为什么要手存储过程呀,直接用我给你的那几条sql语句,然后在程序里封个方法,直接调好不就行了吗?没必要用存储过程,以后也不好扩展