Jump to content

Is there a way to?


Recommended Posts

Actually, what I mean is can I make MySQL copy a field from another field?  For instance, I have a table in my db with one field named ID that auto-increments.  I need it to put the same value into another field within the same table named cb_cid.  Is it possible to do this without writing a script to make it do this?

Link to comment
Share on other sites

I guess I did leave that wide open huh?  I didn't mean to say that there would be no instruction to do so at all.  Rather, that the instruction would be run from within MySQL, thru phpmyadmin perhaps, and not from an outside script.


Sometimes though my coding seems to make things happen that I didn't tell it to do.  I usually find out later that I did indeed tell it to do it, but at the time, I didn't think I did.  ;D


Thanks for your replies.



Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.