» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > MySQL Forums

MySQL Forums Share Your Ideas and Tips about MYSQL. Ask questions about MYSQL. Table Design and Much More...

Reply
 
Thread Tools Display Modes
  #1  
Old 03-12-2007, 05:30 AM
erite erite is offline
Junior Member
 
Join Date: Nov 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
erite is on a distinguished road
Default max. number of columns??

Hello all,
I am here to know what is the maximum number of columns that an INSERT statement can handle? Actually, i need to insert 15 values in a table.

INSERT INTO myTable (col1, col2, col3,....., col15) VALUES (v1, v2, v3,...., v15).

Actual statement:

"INSERT INTO BillSell (bnumber, stock, qty, price, tprice, seen, bill_id, brokerage, service_tax, brok_st, stt, brok_st_stt, total_cost, total_rate_pu, check) VALUES ('ICICI 06-12-2004 reshma', 'RELIND', 10, 541.7375183271872, 5417.375183271873, 'no', 2402, 40.2375, 4.92507, 45.162569999999995, 6.771718979089841, 51.934288979089835, 5365.0, 536.5, 'check')"


Java program asks me to check the syntax of the statement as follows :

"com.mysql.jdbc.exceptions.MySQLSyntaxErrorExcepti on: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'check) VALUES ('ICI -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 03-13-2007, 03:59 AM
gilbert gilbert is offline
Senior Member
 
Join Date: Dec 2005
Posts: 110
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 22
gilbert is on a distinguished road
Default

"Check" is a reserved word. If you want to use it for a column name, you have to `back-quote` it. -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
domain with number?? Zlexi Web Hosting Industry 1 03-08-2007 08:56 AM
number formatting. Jlawry MySQL Forums 1 12-07-2006 04:53 AM
reseller for number of visitors required?? Shanon Reseller Hosting Forum 1 10-28-2006 05:15 AM
How to get the Next Auto Increment number +Mysql Mclaren PHP Programming and Tips 1 08-25-2006 10:55 AM
error number 1130 Jan MySQL Forums 0 08-07-2006 10:08 AM


All times are GMT. The time now is 11:22 PM.