Return a Portion of a Character String





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

« Previous 1 2 3 4 5 6 Next »
-15
Date Submitted Thu. Oct. 12th, 2006 3:28 PM
Revision 1
Beginner ammonkc
Tags Anti-Injection | Injection | mysql | PHP | SQL
Comments 5 comments
Anti-QSL Injection. I'm sure it could be better, so any improvements are welcome.
-11
Date Submitted Thu. Oct. 13th, 2005 7:29 PM
Revision 1
Coder mattrmiller
Tags CPlusPlus | Empty | String
Comments 2 comments
Is String Empty
-9
Date Submitted Sun. Jul. 16th, 2006 9:16 AM
Revision 1
Helper eriveraa
Tags SQL
Comments 0 comments
Some usefull snippets for SQL Server.
-5
Date Submitted Tue. Nov. 8th, 2005 6:10 AM
Revision 1
Beginner XStatic
Tags CSharp | Parse. Number | String
Comments 0 comments
Parsing a String for Numbe
-4
Date Submitted Wed. Oct. 12th, 2005 9:51 PM
Revision 1
Helper ses5909
Tags HTML | String | Strip | VB.NET
Comments 1 comments
Strip HTML Tags From a String
-4
Date Submitted Thu. Oct. 13th, 2005 7:36 PM
Revision 1
Coder mattrmiller
Tags CPlusPlus | Numeric | String
Comments 2 comments
Is String Numeric
-3
Date Submitted Thu. Feb. 23rd, 2006 9:57 AM
Revision 3
Helper jpinkham
Tags Java | JDBC | lightweight | orm | SQL
Comments 1 comments
I actually like SQL. So, things like Hibernate with it's own query language don't quite fit my style. But, I don't want to code the same catch SQLException conn.close over and over either. So, I came up with this.

The idea is you extend SQLCommand (usually anonymously) override getSql(), and call execute() to get a list of whatever objects you are selecting - all the cleanup stuff is taken care of. It also handles nullable attributes more intuitively using ResultSetWrapper and PreparedStatementWrapper so that in your overridden getRow(ResultSetWrapper rs) method, you can call getInt on a nullable column and have it return null - what a concept! Also I like java.util.Date for my dates, so the wrappers convert to/from java.sql.Timestamp.

Right now I've only bothered with some basic types - it should be pretty clear how to add more if you need em.

See what ya'll think.

Oh, it uses JDK 1.5 Generics, but stripping that away would be pretty easy if you wanted 1.2 compliance.
0
Date Submitted Fri. Jul. 21st, 2006 8:37 PM
Revision 1
Helper eriveraa
Tags Server | SQL
Comments 1 comments
This is an example of how to shrink a database with simple query.
2
Date Submitted Tue. Nov. 8th, 2005 7:37 AM
Revision 1
Beginner webdude
Tags ASP | LCase | String
Comments 1 comments
LCase Functio
2
Date Submitted Tue. Sep. 12th, 2006 8:00 AM
Revision 1
Beginner dogo
Tags File | String
Comments 0 comments
This function loads an File into an String.
« Previous 1 2 3 4 5 6 Next »