Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 How to change and add to merge .sql files

Author  Topic 

shinchan
Starting Member

1 Post

Posted - 2010-04-03 : 12:58:50
I have 2 dumps, for a directory. One is already installed, has 18 categories and over 3500 sub categories. The following dump I want to install has issues with the current dump fields and tables it has over 7000 catigorys.

Error

SQL query:

-- -- Dumping data for table `PLD_CATEGORY` -- INSERT INTO `PLD_CATEGORY` (`ID`, `TITLE`, `CACHE_TITLE`, `TITLE_URL`, `CACHE_URL`, `DESCRIPTION`, `CATCONTENT`, `PARENT_ID`, `STATUS`, `DATE_ADDED`, `HITS`, `SYMBOLIC`, `SYMBOLIC_ID`, `META_KEYWORDS`, `META_DESCRIPTION`) VALUES (2, 'Alabama', 'Alabama', 'Alabama', 'Alabama/', NULL, NULL, NULL, 0, 2, '2007-02-25 02:34:18', 1, 0, 0, NULL, NULL), (3, 'Alaska', 'Alaska', 'Alaska', 'Alaska/', NULL, NULL, NULL, 0, 2, '2007-02-25 02:34:18', 0, 0, 0, NULL, NULL), (4, 'Arizona', 'Arizona', 'Arizona', 'Arizona/', NULL, NULL, NULL, 0, 2, '2007-02-25 02:34:18', 0, 0, 0, NULL, NULL), (5, 'Arkansas', 'Arkansas', 'Arkansas', 'Arkansas/', NULL, NULL, NULL, 0, 2, '2007-02-25 02:34:18', 0, 0, 0, NULL, NULL), (6, 'California', 'California', 'California', 'California/', NULL, NULL, NULL, 0, 2, '2007-02-25 02:34:18', 0, 0, 0, NULL, NULL), (7, 'Colorado', 'Colorado', 'Colorado', 'Colorado/', NULL, NULL, NULL, 0, 2, '2007-02-25 02:34:18', 0, 0, 0[...]

MySQL said: Documentation
#1136 - Column count doesn't match value count at row 1


how could I add this new dump to the existing table and files. Thank you for anyone's help on this.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-04-03 : 13:02:22
this is MS SQL Server forum and so solutions provided are guaranteed to work only in MS SQL Server. Since you're using MySQL please post this in MySQL forums like one at www.dbforums.com to get MySQL specific solution

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -