Copying info from a table other than CB_Fields

14 years 7 months ago #110671 by ksnieder
Can we use the SQL plugin to insert data from another table (not the CB fields table) into another table if they are both in the same database. If so, how?

Please Log in to join the conversation.

14 years 7 months ago #110678 by krileon
ksnieder wrote:

Can we use the SQL plugin to insert data from another table (not the CB fields table) into another table if they are both in the same database. If so, how?


Yes, by using a standard query. SQL Actions works the same way you'd write a query.

INSERT INTO `MY_TABLE` SET `column` = 1 WHERE `xyz` = 123

Don't know where you have found that SQL Actions only works on fields. This is not the case. CBSubs Fields only works on fields obviously.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.193 seconds

Facebook Twitter LinkedIn