RE: The Execute from the command line

2009-10-05 Thread Lucas . CTR . Heuman
Thanks that worked. I was trying -v from the help. Gavin Towey gto...@ffn.com 10/02/2009 05:30 PM To Lucas CTR Heuman/ACT/CNTR/f...@faa, mysql@lists.mysql.com mysql@lists.mysql.com cc Subject RE: The Execute from the command line Mysql -vv See mysql --help for more info Regards

The Execute from the command line

2009-10-02 Thread Lucas . CTR . Heuman
I am using linuxmachine:/var/wwwdev/lucas# mysql -udatabase -ppassword -e LOAD DATA LOCAL INFILE '/var/wwwdev/lucas/cardreaderimport/update.csv' into table Project.testtest fields terminated by ',' lines terminated by '\n'

Formatting in same columns when selecting from two tables.

2008-03-06 Thread Lucas . CTR . Heuman
I have a table in my database with 4 fields, Because it is already implemented in the application I am modifying I cannot change the table. Here is what I have DATA1STAMP type DATE , DATA1DATA type INTEGER, DATA2STAMP type DATE, DATA2DATA type INTEGER in my DATATABLE. I now need to select

Re: Formatting in same columns when selecting from two tables.

2008-03-06 Thread Lucas . CTR . Heuman
/2008 09:14 AM To Lucas CTR Heuman/ACT/CNTR/[EMAIL PROTECTED] cc mysql@lists.mysql.com Subject Re: Formatting in same columns when selecting from two tables. Good Morning Lucas- could you define the formatting specifics of DATA and DATASTAMP result-type? Thank You Martin - Original

Re: Fwd: auto increment format

2007-08-07 Thread Lucas . CTR . Heuman
Isn't there a chance that you could get a ID that is the same as one already in use? and if this happens what happens on the insert? Wishing you the best you know you deserve, __ Lucas Heuman Web Developer Ricomm Systems Inc. FAA, WJHTC/Bldg 300, 3nd Fl., L33 Atlantic City

ODBC Drivers 3 and 5

2007-06-19 Thread Lucas . CTR . Heuman
I have been looking online for an explanation of the differences between ODBC drivers 3 and 5. I'm sure it is someplace simple to find. Does anyone here know? Phone 609.485.5401

Re: ODBC Drivers 3 and 5

2007-06-19 Thread Lucas . CTR . Heuman
the same version? -Luke Jim Winstead [EMAIL PROTECTED] 06/19/2007 12:09 PM To Lucas CTR Heuman/ACT/CNTR/[EMAIL PROTECTED] cc MySQL List mysql@lists.mysql.com Subject Re: ODBC Drivers 3 and 5 On Tue, Jun 19, 2007 at 10:24:11AM -0400, [EMAIL PROTECTED] wrote: I have been looking online

Re: IS NULL Question

2007-05-01 Thread Lucas . CTR . Heuman
By chance when you set them as null did you use null or 'null' setting it as a string value? __ Lucas Heuman Phone 609.485.5401 Martijn Tonies [EMAIL PROTECTED] 05/01/2007 04:45 AM To MySQL mysql@lists.mysql.com cc Subject Re: IS NULL Question I'm having

Counting Row Results inside the select

2007-03-28 Thread Lucas . CTR . Heuman
Has anyone found a way to get a result set with the current row return number in a select statement without using vars? select concat('Test row ',currentreturnrownum()) as testdata , mytestdata from mytestdatatable; ++---+ |Test row 1 |

re: Counting Row Results inside the select

2007-03-28 Thread Lucas . CTR . Heuman
I'm sorry, currentreturnrownum() doesn't exist .. I was looking for a function like that so I can make a result set show what row it is in the return set. so I can get select currentrownumber , * from anytable; then I get 1 (rest of date from the *) 2 (rest of date from the *) 3 (rest of date

Using replace with New Lines

2007-03-27 Thread Lucas . CTR . Heuman
Hello Group, Looking to use this REPLACE to strip multi line data out of my return data. I am having problems getting the \n to work correctly, any ideas? REPLACE(DESCRIPTION,\n,' ') SELECT rpad(CASE WHEN DESCRIPTION IS NULL THEN '' ELSE REPLACE(DESCRIPTION,'\n',' ') END,80,' ') as var

Re: Using replace with New Lines

2007-03-27 Thread Lucas . CTR . Heuman
Ok.. I found the problem.. I needed to add a \r.. but now that opens up the question can I have a Multi replace search in replace? Example can I do something like this in MySQL REPLACE (STRING,'\r' or '\n',' ') REPLACE(DESCRIPTION,'\r\n',' ') Wishing you the best you know you deserve,

Functions and NULL with standard install

2007-03-21 Thread Lucas . CTR . Heuman
I am running a basic install of MySQL 5.0 with strict mode turned on I would like to use RPAD however at times a NULL var will be sent to the function. My goal is to have a function that will convert the NULL to a blank string to get the result of EXAMPLE3 if a NULL is returned. EXAMPLE 1

Re: Functions and NULL with standard install

2007-03-21 Thread Lucas . CTR . Heuman
I don't see how to use this here, I will have to research the |/||/| select rpad(|IFNULL(|null, ''),5,'1'); |/||/| but this below works thank you SELECT RPAD(CASE WHEN NULL IS NULL THEN '' ELSE '2' END, 5, '1'); If you are using it on an actual field, you would replace the first NULL and