报的错误是子查询返回的值多于一个。当子查询跟随在 =、!=、<、<=、>、>= 之后,或子查询用作表达式时,这种情况是不允许的。
语句已终止。
-------
报这句错误的原因是
select substring(first.C,1,1)
from A first, A second
where first.id=second.id 此语句的记录集不只一行!
语句已终止。
-------
报这句错误的原因是
select substring(first.C,1,1)
from A first, A second
where first.id=second.id 此语句的记录集不只一行!
在前台输入3房2厅时,就把它分解开来!语句只要这样就OK了!
UPDATE TABLE1
SET A = SUBSTRING(B, 1, 1) Where A<>''