Not understanding excactly why you'd need a random string, I'd suggest doing a simple
password() call on each row's recipient
ALTER TABLE ADD COLUMN rand_string char(16) NOT NULL;
UPDATE my_table SET rand_string=password(email);
This gives you a 16 char long (I think) random string.
Sending this rand_string to the coresponding email, is beyond SQL.
Export in a file the email and corresponding rand_string and from there beat the file
to death with bash or perl or whatever scripting lang uage you want.
regards,
thalis
On Mon, 23 Apr 2001, Prasad Mhatre wrote:
> Dear All,
>
> How do I create random string for each row in a mysql table? and mail the
> same each recepient in the respective row.
>
> Thanks
> Love and regards
> Prasad
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
> http://www.mysql.com/manual.php (the manual)
> http://lists.mysql.com/ (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail <[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>
>
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php