0

MySQL テーブルのフィールド (Manufacturer) に定数値を指定する必要があります。次に例を示します。

select cust_id as 'Customer Record ID', address_flag as 'Address Verified',
oem_manuf as 'Manufacturer'
from sales_db;

フィールド Manufacturer が XYZ Inc に設定されていることをクエリで返すようにしたいのですが、oem_manuf フィールドの各行に文字通り XYZ Inc を格納することなくクエリでこれを行うにはどうすればよいですか? ありがとう!

4

1 に答える 1

3
select cust_id as 'Customer Record ID', address_flag as 'Address Verified',
'XYZ Inc' as 'Manufacturer' from sales_db;
于 2013-01-24T07:55:46.993 に答える