SELECT 在 cassandra 中查询
SELECT query in cassandra
我在 cassandra 中遇到错误 "line 2:28 no viable alternative at input 'api_version As ApiVersion"。我是卡桑德拉的新手。
我的查询是。
"SELECT 'api_version As ApiVersion',
'sid As CarrierSid',
'phone_number As PhoneNumber',
'network As Network',
'wireless As Wireless',
'zipCode As ZipCode',
'city As City',
'price As Price',
'date_time As CreatedDate',
FROM carrier";
"SELECT api_version As ApiVersion,
sid As CarrierSid,
phone_number As PhoneNumber,
network As Network,
wireless As Wireless,
zipCode As ZipCode,
city As City,
price As Price,
date_time As CreatedDate,
FROM carrier";
您使用单引号 (') 导致查询失败。不用它试试。
我在 cassandra 中遇到错误 "line 2:28 no viable alternative at input 'api_version As ApiVersion"。我是卡桑德拉的新手。 我的查询是。
"SELECT 'api_version As ApiVersion',
'sid As CarrierSid',
'phone_number As PhoneNumber',
'network As Network',
'wireless As Wireless',
'zipCode As ZipCode',
'city As City',
'price As Price',
'date_time As CreatedDate',
FROM carrier";
"SELECT api_version As ApiVersion,
sid As CarrierSid,
phone_number As PhoneNumber,
network As Network,
wireless As Wireless,
zipCode As ZipCode,
city As City,
price As Price,
date_time As CreatedDate,
FROM carrier";
您使用单引号 (') 导致查询失败。不用它试试。