Hi Folks,
I am trying to load a table into MySql by uploading a text file.
Example:
#
# Table structure for table `strokeaverages`
#
CREATE TABLE `strokeaverage` (
`ID` int(5) NOT NULL auto_increment,
`no` varchar(10) NOT NULL default '',
`gender` varchar(1) NOT NULL default '',
`surname` varchar(25) NOT NULL default '',
`name` varchar(25) NOT NULL default ",
`concat` varchar(50) NOT NULL default ",
`2009` varchar(4) NOT NULL default '',
`age` varchar(4) NOT NULL default '',
`gnsa16` varchar(15) NOT NULL default '',
`d11` varchar(3) NOT NULL default '',
`d12` varchar(3) NOT NULL default '',
`d21` varchar(3) NOT NULL default '',
`d22` varchar(3) NOT NULL default '',
`d31` varchar(3) NOT NULL default '',
`d32` varchar(3) NOT NULL default '',
`d41` varchar(3) NOT NULL default '',
`d42` varchar(3) NOT NULL default '',
`d51` varchar(3) NOT NULL default '',
`d52` varchar(3) NOT NULL default '',
`d61` varchar(3) NOT NULL default '',
`d62` varchar(3) NOT NULL default '',
`d71` varchar(3) NOT NULL default '',
`d72` varchar(3) NOT NULL default '',
`d81` varchar(3) NOT NULL default '',
`d82` varchar(3) NOT NULL default '',
`d91` varchar(3) NOT NULL default '',
`d92` varchar(3) NOT NULL default '',
`d101` varchar(3) NOT NULL default '',
`d102` varchar(3) NOT NULL default '',
`d111` varchar(3) NOT NULL default '',
`d112` varchar(3) NOT NULL default '',
`d121` varchar(3) NOT NULL default '',
`d122` varchar(3) NOT NULL default '',
`d131` varchar(3) NOT NULL default '',
`d132` varchar(3) NOT NULL default '',
`rounds` varchar(15) NOT NULL default '',
`avglowest` varchar(15) NOT NULL default '',
`avgall` varchar(15) NOT NULL default '',
`n11` varchar(3) NOT NULL default '',
`n12` varchar(3) NOT NULL default '',
`n21` varchar(3) NOT NULL default '',
`n22` varchar(3) NOT NULL default '',
`n23` varchar(3) NOT NULL default '',
`n31` varchar(3) NOT NULL default '',
`n32` varchar(3) NOT NULL default '',
`n41` varchar(3) NOT NULL default '',
`n42` varchar(3) NOT NULL default '',
`n51` varchar(3) NOT NULL default '',
`n52` varchar(3) NOT NULL default '',
`n61` varchar(3) NOT NULL default '',
`n62` varchar(3) NOT NULL default '',
`sa1801` varchar(3) NOT NULL default '',
`sa1802` varchar(3) NOT NULL default '',
`sa1803` varchar(3) NOT NULL default '',
`sa1804` varchar(3) NOT NULL default '',
`sa1601` varchar(3) NOT NULL default '',
`sa1602` varchar(3) NOT NULL default '',
`sa1603` varchar(3) NOT NULL default '',
`sa1604` varchar(3) NOT NULL default '',
`sa1401` varchar(3) NOT NULL default '',
`sa1402` varchar(3) NOT NULL default '',
`sa1403` varchar(3) NOT NULL default '',
`sa1404` varchar(3) NOT NULL default '',
`sa1201` varchar(3) NOT NULL default '',
`sa1202` varchar(3) NOT NULL default '',
`sa1203` varchar(3) NOT NULL default '',
`sa1204` varchar(3) NOT NULL default '',
`gn01` varchar(3) NOT NULL default '',
`gn02` varchar(3) NOT NULL default '',
`gn03` varchar(3) NOT NULL default '',
`gn04` varchar(3) NOT NULL default '',
PRIMARY KEY (`ID`)
) TYPE=MyISAM COMMENT='Game Organisation' AUTO_INCREMENT=22 ;
# --------------------------------------------------------
I have the following questions:
How is the auto increment value determined?
What exactly does this line do in laymans terms for the MySql to upload and be succesful?
I am sure there is a whiz kid amoungst you that can help.
I am trying to load a table into MySql by uploading a text file.
Example:
#
# Table structure for table `strokeaverages`
#
CREATE TABLE `strokeaverage` (
`ID` int(5) NOT NULL auto_increment,
`no` varchar(10) NOT NULL default '',
`gender` varchar(1) NOT NULL default '',
`surname` varchar(25) NOT NULL default '',
`name` varchar(25) NOT NULL default ",
`concat` varchar(50) NOT NULL default ",
`2009` varchar(4) NOT NULL default '',
`age` varchar(4) NOT NULL default '',
`gnsa16` varchar(15) NOT NULL default '',
`d11` varchar(3) NOT NULL default '',
`d12` varchar(3) NOT NULL default '',
`d21` varchar(3) NOT NULL default '',
`d22` varchar(3) NOT NULL default '',
`d31` varchar(3) NOT NULL default '',
`d32` varchar(3) NOT NULL default '',
`d41` varchar(3) NOT NULL default '',
`d42` varchar(3) NOT NULL default '',
`d51` varchar(3) NOT NULL default '',
`d52` varchar(3) NOT NULL default '',
`d61` varchar(3) NOT NULL default '',
`d62` varchar(3) NOT NULL default '',
`d71` varchar(3) NOT NULL default '',
`d72` varchar(3) NOT NULL default '',
`d81` varchar(3) NOT NULL default '',
`d82` varchar(3) NOT NULL default '',
`d91` varchar(3) NOT NULL default '',
`d92` varchar(3) NOT NULL default '',
`d101` varchar(3) NOT NULL default '',
`d102` varchar(3) NOT NULL default '',
`d111` varchar(3) NOT NULL default '',
`d112` varchar(3) NOT NULL default '',
`d121` varchar(3) NOT NULL default '',
`d122` varchar(3) NOT NULL default '',
`d131` varchar(3) NOT NULL default '',
`d132` varchar(3) NOT NULL default '',
`rounds` varchar(15) NOT NULL default '',
`avglowest` varchar(15) NOT NULL default '',
`avgall` varchar(15) NOT NULL default '',
`n11` varchar(3) NOT NULL default '',
`n12` varchar(3) NOT NULL default '',
`n21` varchar(3) NOT NULL default '',
`n22` varchar(3) NOT NULL default '',
`n23` varchar(3) NOT NULL default '',
`n31` varchar(3) NOT NULL default '',
`n32` varchar(3) NOT NULL default '',
`n41` varchar(3) NOT NULL default '',
`n42` varchar(3) NOT NULL default '',
`n51` varchar(3) NOT NULL default '',
`n52` varchar(3) NOT NULL default '',
`n61` varchar(3) NOT NULL default '',
`n62` varchar(3) NOT NULL default '',
`sa1801` varchar(3) NOT NULL default '',
`sa1802` varchar(3) NOT NULL default '',
`sa1803` varchar(3) NOT NULL default '',
`sa1804` varchar(3) NOT NULL default '',
`sa1601` varchar(3) NOT NULL default '',
`sa1602` varchar(3) NOT NULL default '',
`sa1603` varchar(3) NOT NULL default '',
`sa1604` varchar(3) NOT NULL default '',
`sa1401` varchar(3) NOT NULL default '',
`sa1402` varchar(3) NOT NULL default '',
`sa1403` varchar(3) NOT NULL default '',
`sa1404` varchar(3) NOT NULL default '',
`sa1201` varchar(3) NOT NULL default '',
`sa1202` varchar(3) NOT NULL default '',
`sa1203` varchar(3) NOT NULL default '',
`sa1204` varchar(3) NOT NULL default '',
`gn01` varchar(3) NOT NULL default '',
`gn02` varchar(3) NOT NULL default '',
`gn03` varchar(3) NOT NULL default '',
`gn04` varchar(3) NOT NULL default '',
PRIMARY KEY (`ID`)
) TYPE=MyISAM COMMENT='Game Organisation' AUTO_INCREMENT=22 ;
# --------------------------------------------------------
I have the following questions:
How is the auto increment value determined?
What exactly does this line do in laymans terms for the MySql to upload and be succesful?
I am sure there is a whiz kid amoungst you that can help.
Comment