求教:数据操作# Database - 数据库
z*a
1 楼
想在DB2中实现以下数据操作,不知道是否有相应的Statement or Function:
Table A has 2 columns: c1 and c2. c1 already has data populated. c2 is empty.
I need to populate c2 with c1's data only when there's no duplicates. For
example: c1 has {a,a,b,c,c,d,e}. After running the SQL statement, c2 should be
populated with {"","",b,"","",d,e}. Is there any way to accomplish this?
Thanks for your help!
Table A has 2 columns: c1 and c2. c1 already has data populated. c2 is empty.
I need to populate c2 with c1's data only when there's no duplicates. For
example: c1 has {a,a,b,c,c,d,e}. After running the SQL statement, c2 should be
populated with {"","",b,"","",d,e}. Is there any way to accomplish this?
Thanks for your help!