alter table ѧÉú±í add ƽ¾ù·Ö as ((³É¼¨1+³É¼¨2+³É¼¨3)/3)
select *,ƽ¾ù·Ö =(³É¼¨1+³É¼¨2+³É¼¨3)/3 from ta . SQL code: --Ð޸ıí½á¹¹ alter table ѧÉú±í add ƽ¾ù·Ö as ((³É¼¨1+³É¼¨2+³É¼¨3)*1.0/3)--Ë®¸çµÄ --Ö±½Ó²éѯ select *,ƽ¾ù·Ö =(³É¼¨1+³É¼¨2+³É¼¨3)*1.0/3 from ta --ʯͷ¸ç
alter table ѧÉú±í add ƽ¾ù·Ö as ((³É¼¨1+³É¼¨2+³É¼¨3)/3.0) go
SQL code:
alter table ѧÉú±í add ƽ¾ù·Ö as ((³É¼¨1+³É¼¨2+³É¼¨3)/3.00)
alter table ±íÃû add ƽ¾ù·Ö as ((³É¼¨1+³É¼¨2+³É¼¨3)/3.0) go
sql2005 select *from v_ddxx where d_sfsc='0' and (g_ssbm='1001' or g_ssbm='1002') and (xxf>0 and xxfwzf <>0 ),Ö´ÐÐËÙ¶ÈÂýµÄÒªËÀ£¬µ«ÊÇÈç¹û°Ñ(xxf>0 and ......