Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Closed Thread
Duplicating SQL values
Old 06-21-2004, 03:11 AM Duplicating SQL values
Registered User

Posts: 1
Trades: 0
I would like to copy a value 'userID' to a field in the same database 'pid' automatically when someone registers. I use the second as a lookup field. The userID field is an autoincrement. Can this be done?
mexicomike is offline
View Public Profile
 
 
Register now for full access!
Old 06-21-2004, 11:37 AM do it in SQL
ibbo's Avatar
Super Spam Talker

Posts: 880
Location: Leeds UK
Trades: 0
do go getting in a muddle using PHP when you can simply throw it some sql.

update table set table.pid = table.UserID

can be simply used from your register code.

Ibbo
ibbo is offline
View Public Profile Visit ibbo's homepage!
 
Closed Thread     « Reply to Duplicating SQL values
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28970 seconds with 12 queries