'[email protected]' 这个可以转成datetime类型吗?

解决方案 »

  1.   

    nvarchar 值 '[email protected]' 不能转换为 datetime
      

  2.   

    我输入两个参数,@chv_field是字段名,@chv_text是字段内容,查询符合条件的记录,现在在where条件中,先判断字段名如:loginname,email,等,然后再根据字段名查询,如:@chv_field = email, @chv_text = [email protected] ,就是where email = [email protected],但现在就是加入日期型字段就报这个错,如果都是字符型就OK,不知道在这基础上怎么转化数据类型?