/** 设置询价单整单询价默认值 **/
IF  EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PUR_INQUIRY' AND KSQL_COL_NAME IN ('FTOTALINQUIRY')) 
 update  T_PUR_INQUIRY  set FTOTALINQUIRY = '0' where FTOTALINQUIRY = ' ' or FTOTALINQUIRY ='';