如何使用存储过程阻止输入空间 [英] How do I prevent entering space by using store procedure

查看:98
本文介绍了如何使用存储过程阻止输入空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用存储过程来插入数据,但问题是当文本框为空时它会在字段中插入空格。我怎么解决它!有人可以解决吗?



Rabindranath

I used store procedure to insert data but the problem is that it inserts spaces into field when the text box is null. How I solve it! Could anybody please solve it?

Rabindranath

推荐答案

你可以做



IF(LTRIM(RTRIM(@string))<>'')
u can do

IF(LTRIM(RTRIM(@string))<>'')


这篇关于如何使用存储过程阻止输入空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆