Ask a Question related to MySQL, Design and Development.
-
Lee Peedin #1
Newbie Question (column names)
I am in the process of writting a program, in my language of choice,
(ooRexx) to perform the following conversion from BTrieve databases to
MySQL tables:
1) Gather BTrieve field names
2) Export data from BTrieve to MySQL compatable .csv files
3) Create the MySQL table based on data gleaned in step 1
4) Import the .csv file from step 2 into the table created in step 3
All is going very well and is blazingly fast, but there's one little
issue I've encountered that maybe you experienced MySQL users can
assist me in.
I've encounted several BTrieve field names that MySQL doesn't "like"
as table column names (and I fully understand why).
The ones so far are:
key
group
desc
I've coded my program to prepend such names with the letter "a" (key
becomes akey, etc.)
Are there other "key words" that I should account for (maybe a list of
MySQL "reserved words")?
Thanks
Lee
Lee Peedin Guest
-
Getting column data without column names
Hello all, I'm trying to write a coldfusion program to display account data such as name, address, phone #, etc. I retrieve this data from an ... -
counting column and getting column names
Im using an Access database that will probably be switched over to Oracle later, but I need to find out how to get the number of columns in an... -
Newbie Datagrid Column Scrolling Question
I have a datagrid that is AutoGenerateColumns from a SQL table. The problem I have is that one of the columns in each row contains a lot of data so... -
How to get column names using SQL?
In article <a06d6e69.0307100719.2e206e69@posting.google.com>, minjie@excite.com says... SYSCAT.COLUMNS To show the columns of this view: ... -
No column names
Hi, Change the value of DESCSTAT from NO to YES and reassemble DSNZPARM. Vesna Frank wrote: -
Lee Peedin #2
Re: Newbie Question (column names)
Nevermind - I reformed my Google search text and came up with the
following link:
<http://dev.mysql.com/doc/refman/5.0/en/reserved-words.html>
Which I think answers my question.
Thanks
Lee
On Sat, 02 Sep 2006 12:55:19 GMT, Lee Peedin
<lpeedinDONOTSPAME@nc.rr.com> wrote:
>I am in the process of writting a program, in my language of choice,
>(ooRexx) to perform the following conversion from BTrieve databases to
>MySQL tables:
>
>1) Gather BTrieve field names
>2) Export data from BTrieve to MySQL compatable .csv files
>3) Create the MySQL table based on data gleaned in step 1
>4) Import the .csv file from step 2 into the table created in step 3
>
>All is going very well and is blazingly fast, but there's one little
>issue I've encountered that maybe you experienced MySQL users can
>assist me in.
>
>I've encounted several BTrieve field names that MySQL doesn't "like"
>as table column names (and I fully understand why).
>The ones so far are:
>key
>group
>desc
>
>I've coded my program to prepend such names with the letter "a" (key
>becomes akey, etc.)
>
>Are there other "key words" that I should account for (maybe a list of
>MySQL "reserved words")?
>
>Thanks
>Lee
>Lee Peedin Guest
-
Brian Wakem #3
Re: Newbie Question (column names)
Lee Peedin wrote:
> I am in the process of writting a program, in my language of choice,
> (ooRexx) to perform the following conversion from BTrieve databases to
> MySQL tables:
>
> 1) Gather BTrieve field names
> 2) Export data from BTrieve to MySQL compatable .csv files
> 3) Create the MySQL table based on data gleaned in step 1
> 4) Import the .csv file from step 2 into the table created in step 3
>
> All is going very well and is blazingly fast, but there's one little
> issue I've encountered that maybe you experienced MySQL users can
> assist me in.
>
> I've encounted several BTrieve field names that MySQL doesn't "like"
> as table column names (and I fully understand why).
> The ones so far are:
> key
> group
> desc
>
> I've coded my program to prepend such names with the letter "a" (key
> becomes akey, etc.)
>
> Are there other "key words" that I should account for (maybe a list of
> MySQL "reserved words")?
It doesn't matter, just put backticks around the column names and you can
call them key, group, desc etc.
--
Brian Wakem
Email: [url]http://homepage.ntlworld.com/b.wakem/myemail.png[/url]
Brian Wakem Guest
-
Lee Peedin #4
Re: Newbie Question (column names)
On Sat, 02 Sep 2006 19:24:21 +0100, Brian Wakem <no@email.com> wrote:
Thanks for the tip Brian, but wouldn't that also mean that the>Lee Peedin wrote:
>
>
>It doesn't matter, just put backticks around the column names and you can
>call them key, group, desc etc.
backticks would have to be used in any SQL statement that might
involve such names?
Lee
Lee Peedin Guest
-
Brian Wakem #5
Re: Newbie Question (column names)
Lee Peedin wrote:
> On Sat, 02 Sep 2006 19:24:21 +0100, Brian Wakem <no@email.com> wrote:
>>>>Lee Peedin wrote:
>>
>>
>>It doesn't matter, just put backticks around the column names and you can
>>call them key, group, desc etc.
> Thanks for the tip Brian, but wouldn't that also mean that the
> backticks would have to be used in any SQL statement that might
> involve such names?
Yes. If you put backticks around all col names all the time then you don't
need to test whether or not you need to use backticks.
--
Brian Wakem
Email: [url]http://homepage.ntlworld.com/b.wakem/myemail.png[/url]
Brian Wakem Guest



Reply With Quote

