2012-03-04 47 views
-1

当我尝试插入存储过程中的字符串,它显示错误消息...如何插入一个字符串存储过程

Select empcode, isnull(name, + ''0'' +) from employee 

上面的查询是显示错误,当我尝试用单引号,那么结果是一样的

如何在存储过程中插入字符串。

需要查询帮助

+1

请更清楚..... – 2012-03-04 04:51:54

+1

你究竟想要“插入”什么?请更好地澄清问题。你从上面得到的语法错误应该是显而易见的,但是你想要做什么并不明显。 – 2012-03-04 04:58:44

回答

2

尝试要么

Select empcode, isnull(name, ''0'') from employee 

Select empcode, isnull(name, '0') from employee 

选择其中一个适合没有错误。

相关问题