REGISTER
|
Search Tycoon Talk
|
Freelancer.com
|
Members
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.
Register Here
Forum Rules
The Database Forum
You are currently viewing our The Database Forum as a guest. Please
register
to participate.
Login
Remember Me?
Login via Freelancer.com
Tycoon Talk
>
Web Administration Support
>
The Database Forum
>
Duplicating SQL values
Link Back
Thread Tools
Search this Thread
Duplicating SQL values
06-21-2004, 03:11 AM
#
1
(
permalink
)
Duplicating SQL values
mexicomike
Registered User
Posts: 1
Trades:
0
Talkupation:
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?
Register
now for full access!
06-21-2004, 11:37 AM
#
2
(
permalink
)
do it in SQL
ibbo
Super Spam Talker
Posts: 880
Location: Leeds UK
Trades:
0
Talkupation:
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
« Reply to
Duplicating SQL values
Previous Thread
|
Next Thread
Tycoon Talk
>
Web Administration Support
>
The Database Forum
>
Duplicating SQL values
Thread Tools
Search this Thread
Show Printable Version
Email this Page
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
Forum Rules
Feeds:
RSS
JS
XML
Feeds for this forum:
RSS
JS
XML
LinkBack
LinkBack URL
About LinkBacks
Bookmark & Share
Digg this Thread!
Add Thread to del.icio.us
Bookmark in Technorati
Tweet this thread
Page generated in
0.28970
seconds with
12
queries