MySQL Forums
Forum List  »  Other Migration

Re: MySQL 4.0.17 and ByteFX .NET Provider Update Problem
Posted by: Brandon Schenz
Date: July 20, 2004 11:36AM

The CommandBuilder does exactly that. It generates the Update, Delete, and Insert commands based on the Select Command.

Here is what it generated as the Insert Command:

INSERT INTO Customers (CompanyName, FirstName, LastName, Address, City, StateOrProvince, PostalCode, Country, Phone, Fax, Email, Notes, BillName, BillAddress, BillCity, BillState, BillZip, CellorPager, InternetCustomerNo) VALUES (@CompanyName, @FirstName, @LastName, @Address, @City, @StateOrProvince, @PostalCode, @Country, @Phone, @Fax, @Email, @Notes, @BillName, @BillAddress, @BillCity, @BillState, @BillZip, @CellorPager, @InternetCustomerNo); SELECT CustomerID, CompanyName, FirstName, LastName, Address, City, StateOrProvince, PostalCode, Country, Phone, Fax, Email, Notes, BillName, BillAddress, BillCity, BillState, BillZip, CellorPager, InternetCustomerNo FROM Customers WHERE (CustomerID=last_insert_id())

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: MySQL 4.0.17 and ByteFX .NET Provider Update Problem
2727
July 20, 2004 11:36AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.