MySQL Forums
Forum List  »  MySQL for Visual Studio

Re: Get ID after INSERT via MySqlDataAdapter
Posted by: Max Asker
Date: July 03, 2017 11:15AM

CREATE TABLE `data1` (
	`d1_c1` INT(11) NOT NULL AUTO_INCREMENT,
	`d1_c2` INT(11) NOT NULL DEFAULT '0',
	PRIMARY KEY (`d1_c1`)
)
COLLATE='latin1_german1_ci'
ENGINE=InnoDB

CREATE TABLE `data2` (
	`d2_c1` INT(11) NOT NULL AUTO_INCREMENT,
	`d2_c2` INT(11) NOT NULL,
	PRIMARY KEY (`d2_c1`)
)
COLLATE='latin1_german1_ci'
ENGINE=InnoDB


CREATE TABLE `data_relation` (
	`Spalte 1` INT(11) NOT NULL,
	`Spalte 2` INT(11) NOT NULL,
	INDEX `FK_data_relation_data1` (`Spalte 1`),
	INDEX `FK_data_relation_data2` (`Spalte 2`),
	CONSTRAINT `FK_data_relation_data1` FOREIGN KEY (`Spalte 1`) REFERENCES `data1` (`d1_c1`),
	CONSTRAINT `FK_data_relation_data2` FOREIGN KEY (`Spalte 2`) REFERENCES `data2` (`d2_c1`)
)
COLLATE='latin1_german1_ci'
ENGINE=InnoDB

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Get ID after INSERT via MySqlDataAdapter
91
July 03, 2017 11:15AM


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.