•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 422,977 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,934 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MySQL advertiser: Programming Forums
Views: 6172 | Replies: 2
![]() |
I'm having problem in inserting into table. I'm inserting data from one table into another
insert into table1 select * from table2 where condition = expression
I have 962 records in table2 for specified condition, but only 105 rows are getting inserted.
Both tables are in same database.
What could be problem? Please help me to get out of this problem.
insert into table1 select * from table2 where condition = expression
I have 962 records in table2 for specified condition, but only 105 rows are getting inserted.
Both tables are in same database.
What could be problem? Please help me to get out of this problem.
Last edited by katharnakh : Jul 11th, 2006 at 6:01 pm.
•
•
Join Date: Oct 2005
Location: Manchester, UK
Posts: 482
Reputation:
Rep Power: 3
Solved Threads: 33
•
•
•
•
Originally Posted by katharnakh
I'm having problem in inserting into table. I'm inserting data from one table into another
insert into table1 select * from table2 where condition = expression
I have 962 records in table2 for specified condition, but only 105 rows are getting inserted.
Both tables are in same database.
What could be problem? Please help me to get out of this problem.
your expression is probably wrong, however, it is difficult to diagnose unless you post it and some of your schema
![]() |
•
•
•
•
•
•
•
•
DaniWeb MySQL Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- insert statement error (MySQL)
- MySQL INSERT not working. Why? (MySQL)
- Inserting uft8 strings into MySQL from jsp page (JSP)
- Date type problem JSP, mySQL (Java)
- Its really a problem on INSERT statement (MySQL)
Other Threads in the MySQL Forum
- Previous Thread: is order by and group by the same?
- Next Thread: powerbuilder+mysql


Linear Mode