TechSpott - Computer and technology forums

Go Back   TechSpott - Computer and technology forums > Webmasters > Database Management > MySQL
MySQL Forum dedicated to the world's most popular open source database engine.

Reply
 
Thread Tools Display Modes
Old April 17th, 2010, 09:58 PM   #1 (permalink)
Teddy
Guest
 
Posts: n/a
Default simple mysql syntax error?

I have the following table:

+--------------+-------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+--------------+-------------+------+-----+---------+----------------+
| WORK_UNIT_ID | int(11) | NO | PRI | NULL | auto_increment |
| UNIT_NAME | varchar(20) | YES | | NULL | |
| BUILDING | varchar(20) | YES | | NULL | |
| FLOOR | varchar(10) | YES | | NULL | |
+--------------+-------------+------+-----+---------+----------------+
原帖地å€: TechSpott - Computer and technology forums http://www.techspott.com//showthread.php?p=8093

I used the following insert statement and receive the following error:

mysql> INSERT into work_unit_t (UNIT_NAME, BUILDING, FLOOR) VALUES (`Cardiology
', `Main', `3');
ERROR 1064 (42000): 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 'Main'
, `3rd Floor')' at line 1

syntax seems correct to me. any ideas?
  Reply With Quote Share with Facebook
Reply

Bookmarks

Tags
error, mysql, simple, syntax


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Oracle Announces MySQL Cluster 7.1 News Bot News 0 April 13th, 2010 09:47 PM
PHP error Parse error: syntax error, unexpected T_STRING? CandyMan99 PHP 0 April 5th, 2010 09:47 PM
mySQL error I need help with? A Kartaltepe MySQL 1 April 4th, 2010 03:17 AM
MySQL put error message in variable? Mark S MySQL 1 April 4th, 2010 03:04 AM
mySQL error I need help with? A Kartaltepe MySQL 1 April 4th, 2010 02:56 AM

 
Forum Stats
Members: 14,323
Threads: 20,330
Posts: 27,683
Total Online: 38

Newest Member: estiliwer

Latest Threads

Advertisements

Support our advertisers!

Amazon
Sears
Macys
1800flowers.com
Drugstore.com


Carbonite Online-Backups
Tiger Direct
Tech Depot
Buy.com
Office Depot
Fatcow
HostGator


TripsNow.us
Marriott
Expedia
CheapTickets.com
OneTravel
Hotwire

Are you a Fan?

Share this on Facebook

Tag Cloud

Partner Links


Contact Us - Home - Archive - Privacy Statement - Top - Copyright © 2009-2010, TechSpott - All times are GMT -4. Time is 06:11 AM

Powered by vBulletin® Copyright © Jelsoft Enterprises Ltd. :: SEO by vBSEO