473,387 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

MySQL Table Names

Is there a problem with naming a table User? I created a table called
User in my database and inserting records into it seems to be failing
because there is already a table named User that is included in the
MySQL database (for login permissions).

Thanks,

Jeff
Jul 19 '05 #1
4 4177
The word 'user' is as such not a reserved word by mysql according to the
official documentation(http://www.mysql.com/doc/en/Reserved_words.html), but
there can be a problem with the function user, which returns the current
mysql-username.
So better try another name.

Sjoerd

"Jeff" <je******@yahoo.com> wrote in message
news:78*************************@posting.google.co m...
Is there a problem with naming a table User? I created a table called
User in my database and inserting records into it seems to be failing
because there is already a table named User that is included in the
MySQL database (for login permissions).

Thanks,

Jeff

Jul 19 '05 #2
The word 'user' is as such not a reserved word by mysql according to the
official documentation(http://www.mysql.com/doc/en/Reserved_words.html), but
there can be a problem with the function user, which returns the current
mysql-username.
So better try another name.

Sjoerd

"Jeff" <je******@yahoo.com> wrote in message
news:78*************************@posting.google.co m...
Is there a problem with naming a table User? I created a table called
User in my database and inserting records into it seems to be failing
because there is already a table named User that is included in the
MySQL database (for login permissions).

Thanks,

Jeff

Jul 19 '05 #3
The latest version of MySQL (we are on 4.0.16) allows the table name 'user'.
The previous versions used to give us an error ...

"Jeff" <je******@yahoo.com> wrote in message
news:78*************************@posting.google.co m...
Is there a problem with naming a table User? I created a table called
User in my database and inserting records into it seems to be failing
because there is already a table named User that is included in the
MySQL database (for login permissions).

Thanks,

Jeff

Jul 19 '05 #4
The latest version of MySQL (we are on 4.0.16) allows the table name 'user'.
The previous versions used to give us an error ...

"Jeff" <je******@yahoo.com> wrote in message
news:78*************************@posting.google.co m...
Is there a problem with naming a table User? I created a table called
User in my database and inserting records into it seems to be failing
because there is already a table named User that is included in the
MySQL database (for login permissions).

Thanks,

Jeff

Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: jacob nikom | last post by:
I would like to create data model for a group of stores. All stores in this group are very similar to each other, so it is natural to allocate one MySQL database per store. Each database is going...
0
by: Mike Chirico | last post by:
Interesting Things to Know about MySQL Mike Chirico (mchirico@users.sourceforge.net) Copyright (GPU Free Documentation License) 2004 Last Updated: Mon Jun 7 10:37:28 EDT 2004 The latest...
1
by: David | last post by:
Hi, I currently administer our MySQL db version 3.23.56 on a Linux Cobalt Qube server via an external fron-end piece of software. My Table Names have capital letters at the beginning, i.e....
1
by: Neil Zanella | last post by:
Hello, Consider the following PostgreSQL or Oracle SQL DDL code: CREATE TABLE fooTable ( foo INTEGER, PRIMARY KEY (foo) ); CREATE TABLE barTable (
39
by: windandwaves | last post by:
Hi Folk I have to store up to eight boolean bits of information about an item in my database. e.g. with restaurant drive-through facility yellow windows
9
by: Jacques Lebastard | last post by:
I have a problem writing PHP ODBC scripts that suit both MySQL and PostgreSQL. So far, the following syntaxes seem to apply to each database (this is an 'insert' example; the same differences apply...
1
by: PowerLifter1450 | last post by:
I've been having a very rough time installinig mySQL on Linux. I have been following the instructions form here: http://www.hostlibrary.com/installing_apache_mysql_php_on_linux Everytime I get to...
6
Atli
by: Atli | last post by:
This is an easy to digest 12 step guide on basics of using MySQL. It's a great refresher for those who need it and it work's great for first time MySQL users. Anyone should be able to get...
39
by: alex | last post by:
I've converted a latin1 database I have to utf8. The process has been: # mysqldump -u root -p --default-character-set=latin1 -c --insert-ignore --skip-set-charset mydb mydb.sql # iconv -f...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.