borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (sql statement)Next Topic (MsFlexGrid: How to determine column sort order?) New Topic New Poll Post Reply
AndreaVB Forum : Database : Using Len() in SQL
Poster Message
Shady
Level: VB Guru


Registered: 08-07-2002
Posts: 305

icon Using Len() in SQL


Ok

So I've visited a few other websites in search of my answer but to no avail.

Can you use the Len() function in an SQL statement??

For instance What I want to do would look something like this

SELECT * FROM [Table] WHERE Length [Database Field] = 0

Analysis:

I would like an SQL statement that will allow we to display all records where a specific field has no entry or is a zero length string or has a null entry.  Testing the length is the way I believe I should go, but as always any suggestions as to the solution to this problem would be most appreciated.

Regards

Shady

____________________________
I don't wanna die... but I ain't keen on livin' either

14-11-2002 at 01:47 PM
View Profile Send Email to User Show All Posts | Quote Reply
JLRodgers
Level: Moderator

Registered: 04-04-2002
Posts: 1617
icon Re: Using Len() in SQL

My reply to your post is at:

http://www.andreavb.com/forum/viewtopic.php?TopicID=638

14-11-2002 at 07:01 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : Database : Using Len() in SQL
Previous Topic (sql statement)Next Topic (MsFlexGrid: How to determine column sort order?) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder