sql - MySQL insert into table with a set of values -


I need to insert a table with some values ​​(example: 'NDA' in this case). It seems to work well, if I have only one value, I have almost a dozen equal value, is it that I want to insert this query as 'NDA', 'SDM', 'APM' values I can change this query for Curious to know whether it can be done without any stored procedure or copying similar statements and changing values.

  Select Customer_Favorure (Customer_ID, Feature) Select c.id, NDA 'as Customer from C where c.edition =' FREE_TRIAL ';   

Reference:

Do you want it?

  Enter customer_feature (customer_id, feature) Cd from customer C cross JOI, F. Select the feature (Select 'NDA' as the feature union Select all 'SDM' Association Select 'APM') where c.edition = 'FREE_TRIAL';    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -