数据表T 里面有3个字段 A,B,C
原始sql语句
string sql="select A as id,B as text,C as pid from T where......"
但是A 不是唯一的,所以想通过 A+"#"+C的字段的值来作为id(这里不是主键,只是想确定一个唯一值而已)
我改的语句是
select (A+'#'+C) as id , B as text ,C as pid from T 是错的
怎么改,希望大家帮帮忙,急急急!!!SQL
原始sql语句
string sql="select A as id,B as text,C as pid from T where......"
但是A 不是唯一的,所以想通过 A+"#"+C的字段的值来作为id(这里不是主键,只是想确定一个唯一值而已)
我改的语句是
select (A+'#'+C) as id , B as text ,C as pid from T 是错的
怎么改,希望大家帮帮忙,急急急!!!SQL
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货