# Re: 请问sql的问题

Posted by waikiki on October 27, 1998 at 16:17:57:

In Reply to: Re: 请问sql的问题 posted by linda on October 27, 1998 at 16:06:20:

: : 请问各位高手如何将select出来的值丢到一个变数中
: : 例如select count(*) from xxxxx 将select count的值丢到变数中
: : 或者是 select sum(*) from xxxx 将sum 出来的值丢到变数中
: : 谢谢
: select a=count(*) from xxxxx即可

"select count(*) Total
from xxxxxx;"

变数 = Total

Follow Ups:

- Re: 还是不行 alan 09:49:32 10/28/98 (0)