Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
Problem on editing data on MySQL table
Old 12-07-2008, 10:17 AM Problem on editing data on MySQL table
Average Talker

Posts: 27
Trades: 0
Hi folks,


I have a table tblPerdition created on dbPerdition

Code:
mysql> SHOW tables;
+-----------------------+
| Tables_in_dbPerdition |
+-----------------------+
| tblPerdition          |
+-----------------------+
1 row in set (0.00 sec)

Code:
mysql> DESCRIBE tblPerdition;
+------------+--------------+------+-----+---------+-------+
| Field      | Type         | Null | Key | Default | Extra |
+------------+--------------+------+-----+---------+-------+
| user       | varchar(128) | NO   | PRI |         |       |
| servername | varchar(255) | NO   |     |         |       |
| port       | varchar(8)   | YES  |     | NULL    |       |
+------------+--------------+------+-----+---------+-------+
3 rows in set (0.00 sec)

On editing data on the table;

Code:
mysql> INSERT INTO user VALUES
    -> ('userA@domainA.com'),
    -> ('userA@domianB.com'),
    -> ('userA@domainC.com');
ERROR 1146 (42S02): Table 'dbPerdition.user' doesn't exist

Please advise how to fix the problem? Whether I need to edit;
Code:
('userA'@'domainA.com')
???


TIA


B.R.
satimis
satimis is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-07-2008, 12:19 PM Re: Problem on editing data on MySQL table
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://www.w3schools.com/sql/sql_insert.asp

INSERT INTO tablename (fieldlist) VALUES(columnValues) ;
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-07-2008, 09:03 PM Re: Problem on editing data on MySQL table
Average Talker

Posts: 27
Trades: 0
Quote:
Originally Posted by chrishirst View Post
http://www.w3schools.com/sql/sql_insert.asp

INSERT INTO tablename (fieldlist) VALUES(columnValues) ;
Noted with thanks


B.R.
satimis
satimis is offline
Reply With Quote
View Public Profile
 
Old 12-12-2008, 05:36 PM Re: Problem on editing data on MySQL table
Junior Talker

Posts: 1
Name: Jugal Boro
Trades: 0
mysql> INSERT INTO user VALUES.

Here your table name user not found in your database. I think it should be tblPerdition.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
jugalboro is offline
Reply With Quote
View Public Profile
 
Old 12-12-2008, 07:54 PM Re: Problem on editing data on MySQL table
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
Yeah, Jugal is right.

Also, on that note, SQL Server would fail that transaction, even if there was a table called User. You need to 'quote' the identifier, in whatever way is appropriate. That could be Insert [User] or Insert "User" etc, to let the database engine know you mean a data element that was created (ie not out of the box) instead of a reserved word.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Problem on editing data on MySQL table
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.45550 seconds with 12 queries