Time function

2001-04-02 Thread Rekha Das
What time function should I use to add 2 hours to a time value I am getting from the database ? - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list

Re: Re[2]: MySQL 3.23.33: mysql_character_set_name function in libmysql.dll

2001-03-31 Thread Sinisa Milivojevic
Edward Smirnov writes: > Hello Sinisa, > > Saturday, March 31, 2001, 3:45:27 PM, you wrote: > > SM> There is no such function in mysql.h. > > Small piece from mysql.h is below: > ** > char * STDCALL mysql_error(MY

Re[2]: MySQL 3.23.33: mysql_character_set_name function in libmysql.dll

2001-03-31 Thread Edward Smirnov
Hello Sinisa, Saturday, March 31, 2001, 3:45:27 PM, you wrote: SM> There is no such function in mysql.h. Small piece from mysql.h is below: ** char * STDCALL mysql_error(MYSQL *mysql); char * STDCALL mysql_info(MYSQL *mysql); unsigned long STDC

Re: MySQL 3.23.33: mysql_character_set_name function in libmysql.dll

2001-03-31 Thread Sinisa Milivojevic
mySQLDAC writes: > Hello John, > > We are developing the next version of MySQLDAC (MySQL Direct access > components for Delphi/C++ Builder). > > We've found > const char * STDCALL mysql_character_set_name(MYSQL *mysql) in mysqlh.h > > But we've no

MySQL 3.23.33: mysql_character_set_name function in libmysql.dll

2001-03-31 Thread mySQLDAC
Hello John, We are developing the next version of MySQLDAC (MySQL Direct access components for Delphi/C++ Builder). We've found const char * STDCALL mysql_character_set_name(MYSQL *mysql) in mysqlh.h But we've not found this function in libmysql.dll (ver.3.23.33) Is ther alternati

RE: mySQL INSTR function problem

2001-03-27 Thread Cal Evans
3.23.35-log reports it correctly. Cal http://www.calevans.com -Original Message- From: Gordon Werner [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 27, 2001 12:01 PM To: [EMAIL PROTECTED] Subject: mySQL INSTR function problem Hi there ... I am running mySQL Ver. 9.33 Distrib

Re: Password function

2001-03-27 Thread Eric Fitzgerald
I'm going to jump in here and give a little more information. The password() function is in fact a one way encryption. For a two way encryption use the encode() function. But beware, any data stored with the encode() function is only as secure as the master password you assign it. You c

mySQL INSTR function problem

2001-03-27 Thread Gordon Werner
Hi there ... I am running mySQL Ver. 9.33 Distrib. 3.22.25 and I have run into the following problem. When I type: mysql> select INSTR('foobarbar', 'bar'); it outputs +---+ | INSTR('foobarbar', 'bar') | +---+ | 7 | +

Re: to upper case function

2001-03-27 Thread Seung-woo Nam
You can use either ucase() or upper() functions. ucase(str) or upper(str) Seung-woo Nam Zhu George-CZZ010 wrote: > There's a function in SQL to convert strings to upper case (sounds like to_upper()? >), I don't have the reference book at hand, does anyone know the syntax or

Re: to upper case function

2001-03-27 Thread MikeBlezien
On Tue, 27 Mar 2001 11:22:20 -0600, Zhu George-CZZ010 <[EMAIL PROTECTED]> wrote: I believe it's upper(col_name) >>There's a function in SQL to convert strings to upper case (sounds like to_upper()? >), I don't have the reference book at hand, does anyone know

RE: to upper case function

2001-03-27 Thread Cal Evans
http://www.mysql.com/doc/S/t/String_functions.html UCASE(str) UPPER(str) Returns the string str with all characters changed to uppercase according to the current character set mapping (the default is ISO-8859-1 Latin1): mysql> select UCASE('Hej'); -> 'HEJ' T

to upper case function

2001-03-27 Thread Zhu George-CZZ010
There's a function in SQL to convert strings to upper case (sounds like to_upper()? ), I don't have the reference book at hand, does anyone know the syntax or that function? Thank you very much in advance. - Befo

Re: Password function

2001-03-27 Thread René Tegel
well, as easy as is: store the original password, or use a php/your programming_language_specific function like encrypt() and decrypt(). password function is (and should be) irreversable, like a md5 hash. that's where it's ment for. - Original Message - From: "Kevin Wi

Re: Password function

2001-03-27 Thread Jason Landry
You can't. You'll have to regenerate a new, random password and send that out. - Original Message - From: "Kevin Williams" <[EMAIL PROTECTED]> To: "MySQL Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, March 27, 2001 7:27 AM Subject: Password

Re: Password function

2001-03-27 Thread Fred van Engen
Hi Kevin, On Tue, Mar 27, 2001 at 02:27:55PM +0100, Kevin Williams wrote: > Peeps, > > My problem is this. I'm not happy about storing plain text passwords in my database >for users, so was considering using the password () function in order to store a hash >of

Password function

2001-03-27 Thread Kevin Williams
Peeps, My problem is this. I'm not happy about storing plain text passwords in my database for users, so was considering using the password () function in order to store a hash of the password instead. sample SQL. $sql = "SELECT login,IPaddress,password,administrator,va

Reverse of the string function --- SUBSTRING_INDEX

2001-03-17 Thread Redy RAMAMONJISOA
Hi there ! I wanna know if the reverse of the function SUBSTRING_INDEX exists or not. --DESCRIPTION--- == >SUBSTRING_INDEX(str,delim,count) >Returns the substring from string str before count occurrences of the delimiter delim. >If count is positive, everything to the le

how to index on soundex / define own soundex-function

2001-03-15 Thread Gunnar von Boehn
an index on an self defined function? - Can I even define my own function without compiling mysql? Because my Provider wouldn't let me do this. Thank for answering Gunnar von Boehn - Before posting, please check:

UDF 'create function' error, or is it just me?

2001-03-08 Thread Geir Rastad
Hi! I've compiled the udf_example.cc file into an so, copied it to /usr/lib, but when i issue a CREATE FUNCTION lookup RETURN STRING SONAME "udf_example.so"; I get: Error 1041: Out of memory. I've searched the mailing list and the web, and all the information I get is t

Re: need mysql sample to accomplish existing asp function

2001-02-21 Thread kentj
olf Hopkins" <[EMAIL PROTECTED]> > Sent: Tuesday, February 20, 2001 21:04 > Subject: Re: need mysql sample to accomplish existing asp function > > > Rolf, > > > > Sorry I worded that email in a confusing manner. > > You most certainly were! Now I get your meani

Re: need mysql sample to accomplish existing asp function

2001-02-21 Thread Joshua Chamas
Rolf Hopkins wrote: > > > > > My ISP told me they supported asp, so I had a friend of mine set up the > asp > > code for me and he tested it on his server. When I put the code in my > > pages, it did not work. I called my ISP back and found out the first > person > > was wrong. They run Unix a

Re: need mysql sample to accomplish existing asp function

2001-02-21 Thread Rolf Hopkins
lt;[EMAIL PROTECTED]> Cc: "Joe and Nancy M" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, February 21, 2001 15:25 Subject: Re: need mysql sample to accomplish existing asp function > Rolf Hopkins wrote: > > > > > > > > My ISP told me

Re: need mysql sample to accomplish existing asp function

2001-02-20 Thread Ed Carp
Rolf Hopkins ([EMAIL PROTECTED]) writes: > Well now, that depends on what you want to use. You can use java, php, or > perl and there are others but make sure your ISP supports the language you > choose. I recommend php as it is the easiest of the three. Their web site > is www.php.net and www

Re: need mysql sample to accomplish existing asp function

2001-02-20 Thread Rolf Hopkins
- Original Message - From: "Joe and Nancy M" <[EMAIL PROTECTED]> To: "Rolf Hopkins" <[EMAIL PROTECTED]> Sent: Tuesday, February 20, 2001 21:04 Subject: Re: need mysql sample to accomplish existing asp function > Rolf, > > Sorry I worded th

problem with LEFT JOIN function

2001-02-20 Thread SixK
Hello, Can any of you explain me why, when i do this request : select count(*) from OBJET as t1 left join COLLECTION as t2 ON t1.numColl = t2.numColl where t2.numSupp = 0; I've got an error saying : Field numObj not found note that numObj is the Key of table OBJET... Thank's -- Best regards

Re: need mysql sample to accomplish existing asp function

2001-02-19 Thread Rolf Hopkins
started for the change to take effect. Reboot now? [OK] - Original Message - From: "Joe and Nancy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 20, 2001 12:15 Subject: need mysql sample to accomplish existing asp function > I am in a time

Re: need mysql sample to accomplish existing asp function

2001-02-19 Thread Ed Carp
Joe and Nancy ([EMAIL PROTECTED]) writes: > I am in a time crunch to get mysql working on my site. I export inventory > records out of my Peachtree software into Excel and planned to use that .xls > table to show product pricing and availability on my web pages. Below is > sample asp code that

need mysql sample to accomplish existing asp function

2001-02-19 Thread Joe and Nancy
I am in a time crunch to get mysql working on my site. I export inventory records out of my Peachtree software into Excel and planned to use that .xls table to show product pricing and availability on my web pages. Below is sample asp code that works. My ISP had told me they support asp, but af

Re: password() function not used when creating root password

2001-02-19 Thread Rolf Hopkins
Look up skip grants in the manual. - Original Message - From: "root" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 19, 2001 16:09 Subject: password() function not used when creating root password > I have just created a root password i

password() function not used when creating root password

2001-02-19 Thread root
I have just created a root password in MySQL without using the PASSWORD function. In the user table i put in a root password, like this. mysql> UPDATE user SET Password='new_password' WHERE user='root'; mysql> FLUSH PRIVILEGES; Now i am denied access. How do

Total = the total of the SUM function

2001-02-12 Thread jerome auza
Hi, I was wondering if there is a way I can do this in MySQL as a one line command: SELECT COUNT(*) as Qty, Name, 100 * Qty/(SELECT COUNT(*) from Table1) as Percent from Table1 GROUP BY Name; Currently I have to do this in two lines: SELECT COUNT(*) from Table1; SELECT COUNT(*) as Qty, Name

Antwort: [win32,mysql v. 3.23.32]Now() function and ERROR in enum

2001-02-08 Thread alexander . skwar
On 08.02.2001 15:09:47 Christian Ribeaud wrote: > would like that the table put automatically the today's date for every INPUT as > default value. What is wrong? Uhm, why don't you use a timestamp column type then? Okay, it will also save the time, but it's easy to extract only the date, if th

RE: [win32,mysql v. 3.23.32]Now() function and ERROR in enum

2001-02-08 Thread Carsten H. Pedersen
zeroed date instead. Secondly, MySQL does not accept functions as default values. You should use the function only on INSERT. > Another question, 'showIt ENUM('TRUE') DEFAULT ERROR' did not > work but 'showIt ENUM('TRUE','FALSE') DEFAULT FALSE' w

Re: [win32,mysql v. 3.23.32]Now() function and ERROR in enum

2001-02-08 Thread John Cichy
Christian, a DEFAULT value in a CREATE (or ALTER) statement must be a static value, try using a TIMESTAMP field instead. To use 'ERROR' in as an 'ENUM' DEFAULT it must be included in the definition, i.e. ENUM('ERROR','TRUE') Hope this helps... John On Thursday 08 February 2001 09:09, Christi

[win32,mysql v. 3.23.32]Now() function and ERROR in enum

2001-02-08 Thread Christian Ribeaud
Hi, I tried the following code: CREATE TABLE news (... published date DEFAULT 'NOW()' NOT NULL, ..., showIt ENUM('TRUE') DEFAULT ERROR, ...); and I was surprised to get an '-00-00' as date after doing a SELECT. I would like that the table put automatically the today's date for every INPUT

STD function

2001-02-02 Thread José Ernesto Jardim
Hi I'm doing a simple query using the function STD but I'm getting zeros as answer. I know that zero is a perfectly good answer for standart deviation but in this case I should get some positive values :-) Is there something wrong with this function ? My sql string is the folowi

RE: The function of auto_increment and Premier Key? - Thanks!

2001-01-19 Thread SED
EMAIL PROTECTED]] Sent: 19. janúar 2001 18:37 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: The function of auto_increment and Premier Key? > Hi I'm relatively new to MySQL though I familiar to other simple > databases. Ahem... [takes Sumarlidi aside and explains very carefully how the

RE: [PHP-DB] Date function.

2001-01-19 Thread Oson, Chris M.
mysql> select name from tableName -> where month(birthDate) = 7; -Original Message- From: Sharif Islam [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 8:56 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] Date function. This is a simple mysql question i am having problm

RE: The function of auto_increment and Premier Key?

2001-01-19 Thread Carsten H. Pedersen
doing well understanding > the function > of auto_increment and Premier Key. > > Lets say I have a table with a few columns. One of them is an ID with > auto_increment. It has 1000 rows. If I delete row #500 to #599 (total of > 100), will the MySQL update the ID value for row #60

The function of auto_increment and Premier Key?

2001-01-19 Thread SED
Hi I'm relatively new to MySQL though I familiar to other simple databases. I have been reading the manual but not doing well understanding the function of auto_increment and Premier Key. Lets say I have a table with a few columns. One of them is an ID with auto_increment. It has 1000 rows.

Re: Bug in MySQL TRIM() Function! ?

2001-01-18 Thread Michael Widenius
Hi! > "Matt" == Matt Wagner <[EMAIL PROTECTED]> writes: Matt> Paul Wisén writes: >> This works: >> mysql> select trim('foo' FROM 'foobaar'); >> ++ >> | trim('foo' FROM 'foobaar') | >> ++ >> | baar | >> +-

Re: Bug in MySQL TRIM() Function! ?

2001-01-18 Thread Pete Harlan
I think it would have to be considered a simple bug. If you're not convinced by the 'both' example he gave, here's one that's even more obviously a bug: mysql> select trim(leading 'foo' from 'foo'); ++ | trim(leading 'foo' from 'foo') |

Re: Bug in MySQL TRIM() Function! ? / Set element solution

2001-01-18 Thread Paul Wisén
! > >> > >> mysql> select trim('foo' FROM 'foo'); > >> ++ > >> | trim('foo' FROM 'foo') | > >> ++ > >> | foo

Re: Bug in MySQL TRIM() Function! ?

2001-01-18 Thread Basil Hussain
+ >> | foo| >> ++ >> 1 row in set (0.00 sec) If all you want to do is remove any occurance of 'foo' in a string or column value then I'd recommend you look at the REPLACE() function in the manual. Reg

Re: Bug in MySQL TRIM() Function! ?

2001-01-18 Thread Matt Wagner
Paul Wisén writes: > This works: > > mysql> select trim('foo' FROM 'foobaar'); > ++ > | trim('foo' FROM 'foobaar') | > ++ > | baar | > ++ > 1 row in

Bug in MySQL TRIM() Function! ?

2001-01-17 Thread Paul Wisén
This works: mysql> select trim('foo' FROM 'foobaar'); ++ | trim('foo' FROM 'foobaar') | ++ | baar | ++ 1 row in set (0.00 sec) This do

Re: query much slower when function used...?

2001-01-12 Thread elble
> > okay, with gdb i can see that this column becomes a blob (thereby > > not allowing heap tables to be used - which has got to be costing > > me speed), is there any function i can use to 'cast' this column > > to a fixed length? > > hrm, apparently L

user function recommended?

2001-01-12 Thread fractals
" + "maxY BETWEEN " + r.y + " AND " + r.height + " AND minX < " + r.x + " AND maxX > " + r.width + " OR " + "minX < " + r.x + " AND maxX > " + r.width + " AND minY < " +

Re: query much slower when function used...?

2001-01-11 Thread elble
> okay, with gdb i can see that this column becomes a blob (thereby > not allowing heap tables to be used - which has got to be costing > me speed), is there any function i can use to 'cast' this column > to a fixed length? hrm, apparently LEFT(SUBSTRING(MAX(CONCAT())),

Re: query much slower when function used...?

2001-01-11 Thread elble
es to be used - which has got to be costing me speed), is there any function i can use to 'cast' this column to a fixed length? - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://l

query much slower when function used...?

2001-01-11 Thread elble
this is curious: the table: CREATE TABLE inbw_day_diffs_2001_Jan_02_10 ( hostname char(20) NOT NULL default '', variable_name char(64) NOT NULL default '', variable_index_value char(114) NOT NULL default '', variable_index_label char(50) NOT NULL default '', variable_result_value_numer

<    5   6   7   8   9   10