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

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -