Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Table Order
Message
 
 
To
08/01/2010 13:40:35
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
01442768
Message ID:
01442862
Views:
31
>lol...my native language is english... :D
>
>
>ok what i want is to basically....
>when i click a button i run a check on a table if the data is already there i get notified, if its not...its add it to the table

Just do a simple insert command, e.g.

** This will insert only new records
insert into myTable select * from myOtherTable T LEFT JOIN myTable My on T.Name = my.Name where myName IS NULL

** This will give you all already existing records
select My.* from myTable my INNER JOIN myOtherTable T on My.Name = T.Name
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform