mysql - Adding an Column Populated by an Arbitrary Value in SQL -
basically, have query returns 2 columns:
select action_log_id, communications_id consumer_action_log comm_type_id=4
to every row in result set query, want add value 234 titled customer_id. here best attempt:
select action_log_id, communications_id consumer_action_log comm_type_id=4 union select consumer_id,consumer_first_name consumer_profile consumer_id=234;
note: result of second half of query 234. using mysql.
try this:
select 234 consumer_id, action_log_id, communications_id consumer_action_log comm_type_id=4
Comments
Post a Comment