Re: I can't have "group" as a column name in a table? [SOLVED]

2011-02-25 Thread Dave M G
Aveek, Simcha, Johan, Thanks for explaining the situation. I knew there were some reserved words, but I hadn't realized there were so many. Anyway, now that I know I can protect my column names with backticks, I'm good to go. -- Dave M G -- MySQL General Mailing List For list archives: http:/

Re: I can't have "group" as a column name in a table?

2011-02-24 Thread Jo�o C�ndido de Souza Neto
LOL -- João Cândido de Souza Neto "mos" escreveu na mensagem news:6.0.0.22.2.20110224093057.044a0...@mail.messagingengine.com... > At 05:13 AM 2/24/2011, you wrote: >>Use a quote around the column name or explicitly specify the column as >>. (as for e.g. mytable

Re: I can't have "group" as a column name in a table?

2011-02-24 Thread mos
At 05:13 AM 2/24/2011, you wrote: Use a quote around the column name or explicitly specify the column as . (as for e.g. mytable.group) in the query. For more details refer to http://dev.mysql.com/doc/refman/5.5/en/reserved-words.html Thanks Aveek Hmmm. Everyone has given me a great idea. I

Re: I can't have "group" as a column name in a table?

2011-02-24 Thread Jo�o C�ndido de Souza Neto
The best comparison I´ve never seen in my life was the TNT. LOL -- João Cândido de Souza Neto "Johan De Meersman" escreveu na mensagem news:AANLkTikPeVuTpj9E0iepFncCJZQOF6sn_dbrhp0=p...@mail.gmail.com... > On Thu, Feb 24, 2011 at 12:06 PM, Dave M G wrote: > >> Should I never use the word

Re: I can't have "group" as a column name in a table?

2011-02-24 Thread Johan De Meersman
On Thu, Feb 24, 2011 at 12:06 PM, Dave M G wrote: > Should I never use the word "group" for column names? Seems a little > silly. Is there a way to protect column names to that there is no > confusion? > As several people already pointed out, simply use backticks. Simple quotes have started to w

Re: I can't have "group" as a column name in a table?

2011-02-24 Thread Simcha Younger
On Thu, 24 Feb 2011 16:43:56 +0530 Aveek Misra wrote: > Use a quote around the column name or explicitly specify the column as > . (as for e.g. mytable.group) in the query. For more details > refer to http://dev.mysql.com/doc/refman/5.5/en/reserved-words.html > use backticks

Re: I can't have "group" as a column name in a table?

2011-02-24 Thread Jo�o C�ndido de Souza Neto
database, the column was named "group". > > I kept getting failed query errors until I renamed the column. > > I've never before encountered a situation where MySQL mistook a column > name for part of the query syntax. > > Should I never use the word "group&qu

Re: I can't have "group" as a column name in a table?

2011-02-24 Thread Aveek Misra
Use a quote around the column name or explicitly specify the column as . (as for e.g. mytable.group) in the query. For more details refer to http://dev.mysql.com/doc/refman/5.5/en/reserved-words.html Thanks Aveek On Feb 24, 2011, at 4:36 PM, Dave M G wrote: > MySQL users, > > Simple

I can't have "group" as a column name in a table?

2011-02-24 Thread Dave M G
MySQL users, Simple question: In one table in my database, the column was named "group". I kept getting failed query errors until I renamed the column. I've never before encountered a situation where MySQL mistook a column name for part of the query syntax. Should I never use

Re: udf return column name not value

2010-03-15 Thread chamila gayan
Sent: Monday, March 15, 2010 12:58 AM > To: mysql@lists.mysql.com > Subject: udf return column name not value > > CREATE FUNCTION getcolumnvalue(id int,columnname varchar(30)) > RETURNS varchar(50) DETERMINISTIC > READS SQL DATA > begin > declare retval varchar(50); > retur

RE: udf return column name not value

2010-03-15 Thread Gavin Towey
, 2010 12:58 AM To: mysql@lists.mysql.com Subject: udf return column name not value CREATE FUNCTION getcolumnvalue(id int,columnname varchar(30)) RETURNS varchar(50) DETERMINISTIC READS SQL DATA begin declare retval varchar(50); return retval; end; I want get value of related column but it return column name

udf return column name not value

2010-03-15 Thread chamila gayan
CREATE FUNCTION getcolumnvalue(id int,columnname varchar(30)) RETURNS varchar(50) DETERMINISTIC READS SQL DATA begin declare retval varchar(50); select columnname into retval from user where ID = id ; return retval; end; I want get value of related column but it return column name. ex:- (

Re: question+comment : Re: set "DEC" as a column name : forbidden

2006-05-31 Thread Jeremy Cole
Hi Gilles, I search in the manual with "ERROR 1064", and then get the page : http://dev.mysql.com/doc/refman/4.1/en/error-messages-server.html Error: 1064 SQLSTATE: 42000 (ER_PARSE_ERROR) Message: %s near '%s' at line %d I cannot figure out what is wrong from this info, whereas error code 106

Re: question+comment : Re: set "DEC" as a column name : forbidden

2006-05-31 Thread Gilles MISSONNIER
Hello again Paul, 1-Why the error code (1064) can't lead explicitly to the syntax problem ? I'm sorry, I don't understand the question. The mysql command returned the error code [ ERROR 1064 (42000) ] I search in the manual with "ERROR 1064", and then get the page : http://dev.mysql.com/do

Re: question+comment : Re: set "DEC" as a column name : forbidden

2006-05-31 Thread Paul DuBois
roblem. Funny that the keywords were in my question to the list : "DEC column name forbidden", but did not made sens to me to query with these word. first, I tried on the error code [ ERROR 1064 (42000) ] : not understandable to me. then I tried "keyword DEC"(matching

question+comment : Re: set "DEC" as a column name : forbidden

2006-05-31 Thread Gilles MISSONNIER
SQL manual" works when you know where is the problem. Funny that the keywords were in my question to the list : "DEC column name forbidden", but did not made sens to me to query with these word. first, I tried on the error code [ ERROR 1064 (42000) ] : not understandable to me

Re: set "DEC" as a column name : forbidden

2006-05-30 Thread Paul DuBois
or in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'dec float' at line 1 UPPER case lead to the same error. It seems that the reason is that "DEC" is a keyword standing for "decimal". I do not

Re: set "DEC" as a column name : forbidden

2006-05-30 Thread Chenzhou CUI
ght syntax to use near 'dec float' at line 1 UPPER case lead to the same error. It seems that the reason is that "DEC" is a keyword standing for "decimal". I do not understand why this cannot be allowed for a column name. Is there a turn around ? This is an

Re: set "DEC" as a column name : forbidden

2006-05-30 Thread Thomas Lundström
float' at line 1 > > UPPER case lead to the same error. > > It seems that the reason is that "DEC" is a keyword standing for > "decimal". I do not understand why this cannot be allowed for a column > name. > > Is there a turn around ? > &

RE: set "DEC" as a column name : forbidden

2006-05-30 Thread Jay Blanchard
[snip] It seems that the reason is that "DEC" is a keyword standing for "decimal". I do not understand why this cannot be allowed for a column name. [/snip] There are several reserved keywords in MySQL, none of which are recommended for column names. You can try the

set "DEC" as a column name : forbidden

2006-05-30 Thread Gilles MISSONNIER
ve an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'dec float' at line 1 UPPER case lead to the same error. It seems that the reason is that "DEC" is a keyword standing for "decimal". I do n

including column name headers in OUTFILE output?

2006-02-08 Thread Ferindo Middleton Jr
If say something like the following from the mysql command line tool: SELECT * FROM dognames INTO OUTFILE 'C:/outfiles/dognames.tab'; How do I get mysql to include the column names in the file's output? Ferindo -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To un

Re: basic questions: setting a variable and using a column name

2005-12-26 Thread Jigal van Hemert
Joseph Alotta wrote: greetings, I know this is pretty basic stuff, but I couldn't find an answer in google. 1. I want to set the @maxdate variable, but mysql complains. What am I doing wrong? > set @maxdate = select max(date) from positions where account = > "111200512343222"; select (

basic questions: setting a variable and using a column name

2005-12-26 Thread Joseph Alotta
greetings, I know this is pretty basic stuff, but I couldn't find an answer in google. 1. I want to set the @maxdate variable, but mysql complains. What am I doing wrong? 2. The 3rd to the last line: and (p.value - t.amount) < -1000 I wanted to say diff < -1000 but mysql

Re: Incorrect column name

2005-08-29 Thread Scott Noyes
> mysql> create table prova (`Termination ` int); > ERROR 1166: Incorrect column name 'Termination ' The manual says: "Database, table, and column names should not end with space characters." http://dev.mysql.com/doc/mysql/en/legal-names.html -- MySQL General Mailing

Re: Incorrect column name

2005-08-29 Thread Michael Stassen
inyint(3) unsigned NOT NULL default '0', ... ... ) TYPE=MyISAM 1 row in set (0.01 sec) mysql> The field `Termination ` cause me some trouble: If i try to recreate from dump (mysqldump from 4.0) the table 'Dsmaccnt', on another server (version 4.1), i've got this error

Incorrect column name

2005-08-29 Thread Francesco Dalla Ca'
ult '0', ... ... ) TYPE=MyISAM 1 row in set (0.01 sec) mysql> The field `Termination ` cause me some trouble: If i try to recreate from dump (mysqldump from 4.0) the table 'Dsmaccnt', on another server (version 4.1), i've got this error: ERROR 1166: Incorrect column n

Re: Alter Column Name?

2005-06-13 Thread Jigal van Hemert
From: "Scott Purcell" > I cannot find any information on this, so I am thinking the answer is no. But I have a column that I would like to change the name of: > > current the column name is"ID", and I would like it to change it to "CHILD_ID", as the the

RE: Alter Column Name?

2005-06-13 Thread J.R. Bullington
2005 4:56 PM To: Scott Purcell; mysql@lists.mysql.com Subject: RE: Alter Column Name? I'm not sure if this will work for a column name but there is a CHANGE COLUMN feature in the ALTER TABLE statement so that sounds promising. Then again, I don't have a MySQL system to try it on this wee

RE: Alter Column Name?

2005-06-13 Thread Rhino
I'm not sure if this will work for a column name but there is a CHANGE COLUMN feature in the ALTER TABLE statement so that sounds promising. Then again, I don't have a MySQL system to try it on this week - I am travelling - so I can't be sure if it will work for the colu

Alter Column Name?

2005-06-13 Thread Scott Purcell
I cannot find any information on this, so I am thinking the answer is no. But I have a column that I would like to change the name of: current the column name is"ID", and I would like it to change it to "CHILD_ID", as the the software is changing, and we are adding "p

Re: resolving ambiguous column name in subquery

2005-04-04 Thread Tom Cunningham
> In short: a column-name in a subquery can refer to a table *outside* > of the subquery (fair enough), but if the column-name is ambiguous > between *inside* and *outside*, the parser assumes that it refers to > the *inside* context. > > I would have thought it better t

resolving ambiguous column name in subquery

2005-04-04 Thread Tom Cunningham
Hi, the following seems wrong to me. Not sure whether this is a bug. In short: a column-name in a subquery can refer to a table *outside* of the subquery (fair enough), but if the column-name is ambiguous between *inside* and *outside*, the parser assumes that it refers to the *inside* context

Re: Weird "@" in column name

2005-02-18 Thread Gleb Paharenko
Hello. Do you use mysql client program from the old release? Use mysql --version to check the version. "Sehn, Timothy" <[EMAIL PROTECTED]> wrote: > I am running IntranetMySQL (ie. MySQL 4.1.9) and I am getting the = > strangest error: > > mysql> use devmail > Reading table informa

Weird "@" in column name

2005-02-17 Thread Sehn, Timothy
I am running IntranetMySQL (ie. MySQL 4.1.9) and I am getting the strangest error: mysql> use devmail Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> select type_name from faq_type; +--

Re: spaces in table/column name

2004-12-10 Thread andy thomas
On Thu, 9 Dec 2004, sharif islam wrote: > How mysql deals with spaces in table / column name? I am also using > mysqlcc. If I try the following in the doesn't work. Creating table > name with spaces from mysqlcc didn't give any error. But the following > does: > >

Re: spaces in table/column name

2004-12-10 Thread Patrick
coNet Corporation SW Florida's 1st ISP - Original Message - From: "sharif islam" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 09, 2004 4:07 PM Subject: spaces in table/column name > How mysql deals with spaces in table / column name? I am

Re: spaces in table/column name

2004-12-09 Thread gerald_clark
sharif islam wrote: How mysql deals with spaces in table / column name? I am also using mysqlcc. If I try the following in the doesn't work. Creating table name with spaces from mysqlcc didn't give any error. But the following does: INSERT INTO 'tbl name with spaces' (col1, &

Re: spaces in table/column name

2004-12-09 Thread SGreen
Behind the scenes mysqlcc wraps the both the table name with spaces and the column name with spaces with back-ticks (`) not single quotes('). http://dev.mysql.com/doc/mysql/en/Legal_names.html Try this statement instead: INSERT INTO `tbl name with spaces` (col1, `col name with spaces`) V

spaces in table/column name

2004-12-09 Thread sharif islam
How mysql deals with spaces in table / column name? I am also using mysqlcc. If I try the following in the doesn't work. Creating table name with spaces from mysqlcc didn't give any error. But the following does: INSERT INTO 'tbl name with spaces' (col1, 'col name w

Re: Shared column name

2004-08-30 Thread Stuart Felenstein
t > seem > > to fix it. > > Two tables, VendorID exists in both tables > (neither > > are primary keys) > > > > I'm getting a "VendorID in where clause is > ambiguous" > > Sometimes it actually processes the SQL weird. > > I think

Re: Shared column name

2004-08-30 Thread SGreen
upposed to be but can't seem > to fix it. > Two tables, VendorID exists in both tables (neither > are primary keys) > > I'm getting a "VendorID in where clause is ambiguous" > Sometimes it actually processes the SQL weird. > I think this is because same co

Re: Shared column name

2004-08-30 Thread Mark C. Stafford
Try specifying the source tables more explicitly in your SELECT statement. SELECT table_a.VendorJobs opt_a , table_b.VendorJobs opt_b ... -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Shared column name

2004-08-30 Thread Martijn Tonies
Hi, > I know what the deal is supposed to be but can't seem > to fix it. > Two tables, VendorID exists in both tables (neither > are primary keys) > > I'm getting a "VendorID in where clause is ambiguous" > Sometimes it actually processes the SQL weird. &

Shared column name

2004-08-30 Thread Stuart Felenstein
Hi, I know what the deal is supposed to be but can't seem to fix it. Two tables, VendorID exists in both tables (neither are primary keys) I'm getting a "VendorID in where clause is ambiguous" Sometimes it actually processes the SQL weird. I think this is because same

Re: Column name case sensitive problem?

2004-07-21 Thread aman
question about column name case sensitive. Currently, we use > MySQL 3.23.32 running on Linux. > > I am trying to use JDBC to get email from table T1 > > T1( > id char(3), > name varchar(12), > Emailvarchar(16) > ) > > Now If I say, >try{ &g

Column name case sensitive problem?

2004-07-21 Thread Ying Lu
Hello, I have a question about column name case sensitive. Currently, we use MySQL 3.23.32 running on Linux. I am trying to use JDBC to get email from table T1 T1( id char(3), name varchar(12), Emailvarchar(16) ) Now If I say, try{ ... String email = getString("

Question about column name case sensitive

2004-07-20 Thread Ying Lu
Hello, I have a question about column name case sensitive. Currently, we use MySQL 3.23.32 running on Linux. I am trying to use JDBC to get email from table T1 T1( id char(3), name varchar(12), Emailvarchar(16) ) Now If I say, try{ ... String email = getString("

Re: column name contains #

2004-04-19 Thread Paul DuBois
At 20:43 -0700 4/17/04, Zhang Yu wrote: Deal all, I am migrating an old Access database to MySQL. After migration, we'll keep using Access forms as front end, and MySQL as database. I experienced a strange problem when creating table with a column name "id #", which is used by

Re: column name contains #

2004-04-19 Thread Paul DuBois
At 20:43 -0700 4/17/04, Zhang Yu wrote: Deal all, I am migrating an old Access database to MySQL. After migration, we'll keep using Access forms as front end, and MySQL as database. I experienced a strange problem when creating table with a column name "id #", which is used by

Re: column name contains #

2004-04-19 Thread Victoria Reznichenko
Zhang Yu <[EMAIL PROTECTED]> wrote: > > I am migrating an old Access database to MySQL. After > migration, we'll keep using Access forms as front end, > and MySQL as database. > > I experienced a strange problem when creating table > with a column name "id #

column name contains #

2004-04-17 Thread Zhang Yu
Deal all, I am migrating an old Access database to MySQL. After migration, we'll keep using Access forms as front end, and MySQL as database. I experienced a strange problem when creating table with a column name "id #", which is used by many queries in Access. My command is li

Table/Column Name Completion

2004-01-13 Thread zzapper
Hi Ya I believe the Dos Mysql Client has limited table name completion, but do any of the GUI Clients have this feature?? zzapper (vim & cygwin & zsh) -- vim -c ":%s/^/WhfgTNabgureRIvzSUnpxre/|:%s/[R-T]/ /Ig|:normal ggVGg?" http://www.vim.org/tips/tip.php?tip_id=305 Best of Vim Tips -- MyS

Re: Column name: CHECK

2003-12-25 Thread Martijn Tonies
Hi Hans, > Yes, I have used ` > > I don't think check is reserverd because I can CREATE the column name! From > the mysql prompt its possible to insert a record, but not from my Delphi > Code. After that i try to alter / delete the column but thats impossible. > Other co

Re: Column name: CHECK

2003-12-24 Thread Hans van Dalen
Yes, I have used ` I don't think check is reserverd because I can CREATE the column name! From the mysql prompt its possible to insert a record, but not from my Delphi Code. After that i try to alter / delete the column but thats impossible. Other columns in the same table where al

Re: Column name: CHECK

2003-12-24 Thread Director General: NEFACOMP
Have tried to use back sticks? Like `check` Thanks Emery - Original Message - From: "Martijn Tonies" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 24, 2003 16:41 Subject: Re: Column name: CHECK > > > I use the column name CHEC

Re: Column name: CHECK

2003-12-24 Thread Martijn Tonies
> I use the column name CHECK (smallint), but when I insert into the table I > get an error : Check the manual for: Check) values ( etc.etc. > > When I try to change the column name (alter table tablename change check > blabla smallint) I get an error too, check your manual.. &

Column name: CHECK

2003-12-24 Thread Hans van Dalen
Hi Group, I use the column name CHECK (smallint), but when I insert into the table I get an error : Check the manual for: Check) values ( etc.etc. When I try to change the column name (alter table tablename change check blabla smallint) I get an error too, check your manual.. Does anybody

RE: Searching all db tables for a column name in MySQL - how? can I?

2003-10-23 Thread Chris
lto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2003 11:30 AM To: [EMAIL PROTECTED] Subject: RE: Searching all db tables for a column name in MySQL - how? can I? Chris: Your syntax and all documented syntax is for querying column names in just one table. My question is "How do I search for a speci

RE: Searching all db tables for a column name in MySQL - how? can I?

2003-10-23 Thread Patricia LaRue
Chris: Your syntax and all documented syntax is for querying column names in just one table. My question is "How do I search for a specific column name in ALL tables? Chris <[EMAIL PROTECTED]> wrote: SHOW COLUMNS FROM table_name LIKE 'Identifier'; should work. It'

RE: Searching all db tables for a column name in MySQL - how? can I?

2003-10-23 Thread Chris
003 11:02 AM To: [EMAIL PROTECTED] Subject: Searching all db tables for a column name in MySQL - how? can I? In Oracle it looks like this: SELECT table_name FROM all_tables WHERE column_name = 'Identifier' Does anybody know if this is possible in MySQL and if so, what's the syntax

Searching all db tables for a column name in MySQL - how? can I?

2003-10-23 Thread Patricia LaRue
In Oracle it looks like this: SELECT table_name FROM all_tables WHERE column_name = 'Identifier' Does anybody know if this is possible in MySQL and if so, what's the syntax? I can't find anything in the documentation that allows me to search for a specific column in all tables. Thank you, Patr

re: Displaying column name of a table from MySQL client (not PHPMyAdmin)

2003-02-22 Thread Victoria Reznichenko
On Saturday 22 February 2003 14:00, Prabu Subroto wrote: > I don't want to be spoiled by PHPMyAdmin anymore. > I want to get be more expert in SQL Command of MySQL. > > So far, everything is fine but today I realized a > problem. If I want to diplay the columns of an empty > table, the MySQL Clien

RE: Displaying column name of a table from MySQL client (not PHPM yAdmin)

2003-02-22 Thread Prabu Subroto
> T: +27 021 406 3681 > F: +27 021 406 3143 > E: [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > > > -Original Message- > From: Prabu Subroto [mailto:[EMAIL PROTECTED] > Sent: Saturday, February 22, 2003 2:00 PM > To: [EMAIL PROTECTED] > Su

Displaying column name of a table from MySQL client (not PHPMyAdmin)

2003-02-22 Thread Prabu Subroto
Dear my friend I don't want to be spoiled by PHPMyAdmin anymore. I want to get be more expert in SQL Command of MySQL. So far, everything is fine but today I realized a problem. If I want to diplay the columns of an empty table, the MySQL Client will diplay nothing such as : " mysql> select *

Unexpecte unknow column name error

2003-02-19 Thread Barbara Gelhard
mp; create temporary table temp select @canread := "false", @canread := if(FIND_IN_SET("8", Institution_Id) > 0,"true","false"), @canread AS canread from persons; select * from temp; I get the error: ERROR 1166: Incor

RE: column name

2003-01-06 Thread Joe Stump
Check out the alter table syntax ... something to note you can't just change the name - you have to retype the whole column signature: ALTER TABLE [table] CHANGE [old column name] [new column name] [old column definition]; ie. ALTER TABLE users CHANGE st state char(2) NOT NULL DEFAUL

RE: column name

2003-01-06 Thread Simon Green
ALTER TABLE Simon -Original Message- From: Gianluca Carnabuci [mailto:[EMAIL PROTECTED]] Sent: 06 January 2003 16:30 To: [EMAIL PROTECTED] Subject: column name Hi all, I guess it's a dumb question for you guys, but MySql manual doesn't seem to offer newbies a great deal of he

column name

2003-01-06 Thread Gianluca Carnabuci
Hi all, I guess it's a dumb question for you guys, but MySql manual doesn't seem to offer newbies a great deal of help on this one: how do I change a column name? Gian - Before posting, please check: http://www

Re: "FullTest" as the column name

2002-10-29 Thread Roger Baklund
* blah > Hi, > I want to use MySQL to store ESM (Symantec Enterprise > Security Manager) > data. The problem is that in one of their table, there is a field named > "FullText". "FULLTEXT" is a reserved word in mysql. Use backticks: mysql> create table ESMMessage2 (`FullText` text NOT NULL);

max() null bug with funny column name

2002-07-26 Thread mysqluser
14:00:00 | +-+ 1 row in set (3.73 sec) >Fix: >Submitter-Id: ?? >Originator:Jettero Heller >Organization: >MySQL support: none >Synopsis: max() null bug with funny column name >Severity: non-critical >Priority: low >Catego

RE: max() null bug with funny column name

2002-07-26 Thread Jon Frisby
Have you tried "SELECT MAX(`timestamp`) FROM minutely_inbound_handovers;"? -JF > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 26, 2002 6:48 AM > To: [EMAIL PROTECTED] > Subject: max() null bug with funny colum

Re: how to fast rename column name.

2002-07-18 Thread Victoria Reznichenko
qingfong, Thursday, July 18, 2002, 4:49:16 AM, you wrote: q> mysql: q> how to rename column name exception that use alter table tablename column newcolumn expression. I want get fast to rename the column name, but use front idea is very slowly when my table has q> 1000 rec

how to fast rename column name.

2002-07-17 Thread qingfong
mysql: how to rename column name exception that use alter table tablename column newcolumn expression. I want get fast to rename the column name, but use front idea is very slowly when my table has 1000 record. help me

RE: changing column name

2002-05-30 Thread justin cunningham
bject: changing column name Hi Can anyone plz give me the query for chaning the column name of an existing table(which does not affect the elements of that column). I hope there is a way to do that. Any help appreciated Thanx Anil -

Re: changing column name

2002-05-30 Thread Egor Egorov
Anil, Thursday, May 30, 2002, 5:36:32 PM, you wrote: AG> Can anyone plz give me the query for chaning the column name of an existing AG> table(which does not affect the elements of that column). AG> I hope there is a way to do that. Use ALTER TABLE to change column name:

RE: changing column name

2002-05-30 Thread Simon Green
ALTER TABLE tablename CHANGE oldname newname VARCHAR(40) Simon -Original Message- From: Anil Garg [mailto:[EMAIL PROTECTED]] Sent: 30 May 2002 15:37 To: MySql Mail List Subject: changing column name Hi Can anyone plz give me the query for chaning the column name of an existing

changing column name

2002-05-30 Thread Anil Garg
Hi Can anyone plz give me the query for chaning the column name of an existing table(which does not affect the elements of that column). I hope there is a way to do that. Any help appreciated Thanx Anil - Before posting

RE: help sorting by a column name

2002-04-03 Thread Rick Emery
To: [EMAIL PROTECTED] Subject: help sorting by a column name Hey Guys, I need to reorganize the list of reviews on my site so they are displayed by category. However, I want it to display all the reviews from all categories at once. How do I do this? Here is my syntax now for display all reviews at onc

help sorting by a column name

2002-04-03 Thread Alex Behrens
$a["name"]); } ?> I want it so it displays them like this: Processors - Reviews listed here Motherboards Reviews listed here the categories are stored under the column name "category", for reference. Thanks! -Alex "Big Al" Be

Re: how to create a table with column name 'key'?

2002-01-20 Thread Doug Thompson
Perhaps you read the wrong part(s) of the manual: http://www.mysql.com/doc/R/e/Reserved_words.html On Sun, 20 Jan 2002 12:18:45 -0800 (PST), Dominique Plante wrote: >I hope you can answer the following question. I am >wondering how to create a table with a column named >key. I have RTFMed an

Re: how to create a table with column name 'key'?

2002-01-20 Thread Fred van Engen
Dominique, On Sun, Jan 20, 2002 at 12:18:45PM -0800, Dominique Plante wrote: > The following fails (after selecting a database): > > mysql> create table test (key varchar(255), value > varchar(255)); > You should be able to do this by using back-quotes around the column n

how to create a table with column name 'key'?

2002-01-20 Thread Dominique Plante
I hope you can answer the following question. I am wondering how to create a table with a column named key. I have RTFMed and that didn't help. I'm using 3.23.47-max-debug. The following fails (after selecting a database): mysql> create table test (key varchar(255), value varchar(255)); Wit

correct column name

2001-11-24 Thread Hamzat kamal
Hi, Please, how do i correct wrong column name (field name, not one of values stored under the column name) in a table in mysql? I supposed to type password when i was creating the as field but end up typed passwod. Thanks. kamal

RE: correct column name

2001-11-24 Thread Carsten H. Pedersen
> Hi, > > Please, how do i correct wrong column name (field name, not one of values > stored under the column name) in a table in mysql? > > I supposed to type password when i was creating the as field but end up > typed passwod. http://www.bitbybit.dk/mysqlfaq/faq.htm

Re: Perl DBI: Same column name in different tables problem

2001-09-07 Thread Dana Powers
-- From: "Jeremy Zawodny" <[EMAIL PROTECTED]> To: "Philip Mak" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, September 07, 2001 10:48 PM Subject: Re: Perl DBI: Same column name in different tables problem > On Fri, Sep 07, 2001 at 10:03:03PM -0700, Phil

Re: Perl DBI: Same column name in different tables problem

2001-09-07 Thread Jeremy Zawodny
On Fri, Sep 07, 2001 at 10:03:03PM -0700, Philip Mak wrote: > Let's say I performed the following query using Perl DBI: > > $row = $dbh->selectrow_hashref(<<"~"); > SELECT fanfics.handle, authors.handle > FROM fanfics, authors > WHERE fanfics.aid = authors.aid > ~ > > I won't be able to access b

Perl DBI: Same column name in different tables problem

2001-09-07 Thread Philip Mak
Let's say I performed the following query using Perl DBI: $row = $dbh->selectrow_hashref(<<"~"); SELECT fanfics.handle, authors.handle FROM fanfics, authors WHERE fanfics.aid = authors.aid ~ I won't be able to access both fanfics.handle and authors.handle this way, because they're called "handle

Re: Column name in Big 5

2001-09-05 Thread Carl Troein
Jason Kwok writes: > Even my mysql is compile with Big5, I couldn't use Chinese charaters (big 5) > as column name. Is that normal? Did you quote the names? And did they contain any of the illegal characters discused in http://www.mysql.com/doc/L/e/Legal_names.html ? I wonder w

Column name in Big 5

2001-09-05 Thread Jason Kwok
Even my mysql is compile with Big5, I couldn't use Chinese charaters (big 5) as column name. Is that normal? == Best Regards Jason Kwok == --- Virus Free Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.274 / Virus Database: 144 - Release Date:

Re: Error altering column name

2001-08-17 Thread Werner Stuerenburg
I had this error under win when using phpMyAdmin quite frequently. It turned out that mysql creates temp files and somehow the process terminates. To get along, I dump the table, edit the sql file and reimport. Never had a problem with this method. Charles Mégnin schrieb am Freitag, 17. August

Error altering column name

2001-08-17 Thread Charles Mégnin
I am trying to change the name of a table column and get the following error message. I've tried both as a user and as root with no success. Thanks for your ideas mysql> use music Reading table information for completion of table and column names You can turn off this feature to get a quicker sta

RE: ERROR 1060: Duplicate column name

2001-07-18 Thread Sinisa Milivojevic
Lance Lovette writes: > TYPE=PACKED does not seem to be documented in Chapter 7.7 in the online > documentation. Where can I find a description of the PACKED option? > > Also, can it be noted in the documentation that CREATE ... SELECT * FROM ... > does not create an exact copy of the table? Had

RE: ERROR 1060: Duplicate column name

2001-07-17 Thread Lance Lovette
would not have noticed all the 320MB temporary tables I'd have been creating. -Original Message- From: Sinisa Milivojevic [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 17, 2001 6:40 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: ERROR 1060: Duplicate column name Lance Lo

RE: ERROR 1060: Duplicate column name

2001-07-17 Thread Sinisa Milivojevic
Lance Lovette writes: > Thanks for the clarification. Is it a MySQL bug then that the CREATE query > converts all the VARCHAR fields into CHAR fields so the query 'CREATE > TEMPORARY TABLE User2 SELECT * FROM User' creates a temporary table much > larger than the User table? > No, this is not a

RE: ERROR 1060: Duplicate column name

2001-07-16 Thread Lance Lovette
l Widenius [mailto:[EMAIL PROTECTED]] Sent: Monday, July 16, 2001 9:32 AM To: Lance Lovette Cc: MySQL Subject: ERROR 1060: Duplicate column name Hi! >>>>> "Lance" == Lance Lovette <[EMAIL PROTECTED]> writes: Lance> The following CREATE TABLE statements seem st

ERROR 1060: Duplicate column name

2001-07-16 Thread Michael Widenius
Hi! >>>>> "Lance" == Lance Lovette <[EMAIL PROTECTED]> writes: Lance> The following CREATE TABLE statements seem straight forward but they all Lance> fail. Can someone explain why they fail and what I can do to get rid of the Lance> "Duplicate

Re: ERROR 1060: Duplicate column name

2001-07-14 Thread Sinisa Milivojevic
Thank you for your bug report. -- Regards, __ ___ ___ __ / |/ /_ __/ __/ __ \/ /Mr. Sinisa Milivojevic <[EMAIL PROTECTED]> / /|_/ / // /\ \/ /_/ / /__ MySQL AB, FullTime Developer /_/ /_/\_, /___/\___\_\___/ Larnaca, Cyprus <___/ www.mysql.com -

ERROR 1060: Duplicate column name

2001-07-13 Thread Lance Lovette
The following CREATE TABLE statements seem straight forward but they all fail. Can someone explain why they fail and what I can do to get rid of the "Duplicate column name" errors? mysql> CREATE TEMPORARY TABLE User2 (UserID int(11)) SELECT UserID FROM User; ERROR 1060: Duplicat

Re: space in column name and table name, standard?.

2001-05-03 Thread Van
hamad Ilhami" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, May 04, 2001 10:13 > Subject: space in column name and table name, standard?. > > > Hi, > > > > I think mysql support space in column name and table name, using left > >

  1   2   >