Members: 15,141
Threads: 38,827
Posts: 159,354
Online: 27

Newest Member: batterygogo


Old 28.06.2004, 06:22   #1
hawkmultimedia
Junior Mamber
 
Join Date: May 2004
Posts: 37
hawkmultimedia is on a distinguished road
Default MySQL statement help

I'm transferring newsletter subscribers into YANC from an old list. I've managed to import the e-mail addresses. Now, if I can just get the statement to change the list_id and confirmed from 0 to 1 without going through each record individually. I'd also like to copy the subscriber_e-mail values to subsciber_name, but when I try, it just creates new name records without e-mails.

Any pointers?

Thanks!
hawkmultimedia is offline  
Sponsored Links
Old 28.06.2004, 08:18   #2
spleen
Mamber
 
spleen's Avatar
 
Join Date: Apr 2004
Posts: 59
spleen is on a distinguished road
Default Re: MySQL statement help

UPDATE db_table_name SET list_id = 1

ALTER TABLE db_table_name CHANGE subscriber_e-mail subsciber_name
(this renames the field - dunno if you want that)

greez
__________________
got ayne ?
spleen is offline  
Old 28.06.2004, 08:47   #3
hawkmultimedia
Junior Mamber
 
Join Date: May 2004
Posts: 37
hawkmultimedia is on a distinguished road
Thumbs up Re: MySQL statement help

Sweet! Thanks, Spleen.

I didn't want to change the column name, but got the UPDATE statement to work on that as well.

UPDATE mos_newsletter_subscribers SET subscriber_name=subscriber_e-mail;

Thanks again!!
hawkmultimedia is offline  
Old 28.06.2004, 13:55   #4
spleen
Mamber
 
spleen's Avatar
 
Join Date: Apr 2004
Posts: 59
spleen is on a distinguished road
Default Re: MySQL statement help

youre welcome
__________________
got ayne ?
spleen is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Visitor Info Modul mysql error conrad Module 1 14.05.2004 21:38
MySQL auf einem anderen Server ? eLCapitan Installation 5 11.05.2004 20:02
experts pls help: mysql strange behavior coke Development Discussions 5 19.04.2004 19:10
Mysql Port Options titansking Mambo 4.5 Installation and Upgrades 13 17.04.2004 17:34


All times are GMT +2. The time now is 16:43.

Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.