![]() |
|
|
|||||||
![]() |
|
|
Thread Tools | Rate Thread |
|
|
PM User | #1 | |
|
Senior Coder ![]() Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 1,890
Thanks: 5
Thanked 22 Times in 18 Posts
![]() |
Error received when trying to upload SQL code with phpMyAdmin
Here's my situation:
I've got a .csv file that I created with Excel...I noticed that when I opened up this file in a text editor, that there were lots of trailing commas on subsequent lines following the actual data...I cleaned up the file by deleting these commas, and resaved the file as .csv in my text editor....Then, I used a conversion tool that I found (you can see it HERE) to convert the .csv file to core SQL (i know the conversion tool works because I've used it before)...Now, I'm trying to upload the resulting text file with SQL code to my server using phpMyAdmin...I feel like I've done everything right so far, but I keep getting this error from phpMyAdmin when I try to upload the SQL code: Quote:
Thanks in advance for any help you can provide with this one!!
__________________
Regards, R.J. Media Moguls Cleveland, Ohio Web Site Design and Application Development |
|
|
|
|
|
|
PM User | #2 |
|
Senior Coder ![]() Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 1,890
Thanks: 5
Thanked 22 Times in 18 Posts
![]() |
Bottom line, if anyone could point me towards a free SQL debugging utility, I would be very, very grateful !!!!!
__________________
Regards, R.J. Media Moguls Cleveland, Ohio Web Site Design and Application Development |
|
|
|
|
|
PM User | #3 |
|
Master Coder ![]() ![]() Join Date: Jul 2002
Posts: 6,589
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
euh ...
5.35CHAR( 42 ) NOT NULL default '', should be something else. in any case, you need a space between columname and columntype, so 5.35 CHAR( 42 ) NOT NULL default '', but 5.35 is not realy a good variablename. and it should be enclosed in backticks --> `5.35` so working code would be: Code:
CREATE TABLE IF NOT EXISTS parts2( AC0020 CHAR( 10 ) NOT NULL default '', Microphone_Headset CHAR( 53 ) NOT NULL default '', `5.35` CHAR( 42 ) NOT NULL default '', RECNO INT( 10 ) unsigned NOT NULL AUTO_INCREMENT , PRIMARY KEY ( RECNO ) )
__________________
Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html |
|
|
|
|
|
PM User | #4 |
|
Senior Coder ![]() Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 1,890
Thanks: 5
Thanked 22 Times in 18 Posts
![]() |
Thanks, you were absolutely correct...I guess I don't know my SQL errors as well as I thought....
__________________
Regards, R.J. Media Moguls Cleveland, Ohio Web Site Design and Application Development |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Rate This Thread | |
|
|