|
||||||
| Database & Database Programming MySQL, Oracle, SQL, PL/SQL, ABAP, Smart Forms, and other databases and languages. A database is an organized body of related information used in many websites (including CC). |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Is there any1 can help me to my lines
ex... Table 1 Acct_Num Name 123456 Mhel 123465 Jhen Table2 Acct_Num Name 123456 Mhel 125555 Jenny 133455 Led I want to insert the record not listed in the Table 1 e.g(125555, Jenny and 133455, Led) but, the problem is Table 2 has an existing record from Table1... Insert into Table1(Acct_Num, Name) Select Acct_Num,Name from Table2 where not exists(Select Acct_Num, Name from Table1) tnx, i highly appreciated those who want to give some help... |
| Sponsored Links |
|
|
|
|||||
|
I don't understand what you are asking. From what I see you are trying to insert 125555 and Jenny but a record already exists? You can use "delete" to remove the record:
Code:
DELETE FROM tb1 WHERE Acct_Num="125555";
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog Don't hesitate to ask any questions that you have! Check out our ASCII Calculator! |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SQL Tutorials | Jordan | Database & Database Programming | 7 | 02-23-2008 03:20 AM |
| Jdbc | evronia | Java Help | 1 | 11-24-2007 02:03 AM |
| Xav | ........ | 1357.94 |
| MeTh0Dz|Reb0rn | ........ | 1083.85 |
| WingedPanther | ........ | 919.18 |
| marwex89 | ........ | 906.86 |
| morefood2001 | ........ | 903.18 |
| John | ........ | 902.37 |
| Brandon W | ........ | 789.89 |
| chili5 | ........ | 312.39 |
| Steve.L | ........ | 264.99 |
| dcs | ........ | 240.34 |
Goal: 100,000 Posts
Complete: 83%