Quantcast
Channel: Substring In Sql | Automatic Website Traffic RSS
Browsing all 989 articles
Browse latest View live

Is there a SQL equivalent to Delphi's Pos() function?

You bet. It's called the SUBSTRING function. Like the Pos function, the SUBSTRING function in SQL will return a substring of a string based upon a range of characters you specify. It's a handy function...

View Article


T-SQL UDF Quickly Determines How Often a Substring Appears

Microsoft SQL Server 2005 or Microsoft SQL Server 2000 database administrators sometimes come across the problem of hitting the 900-bytes limit for unique constraints. To work around the 900-byte...

View Article


Change a Substring with SQL

However, my SQL command gives me an invalid token error at the opening parenthesis of SUBSTR in the SET statement. Is there a rule that you can’t use SUBSTR in a SET statement? If so, do you have a...

View Article

Mysql SQL Injection

picture or some content is missing on returned page then that site is vulnerable to blind sql injection. Replace 4 with 5. so if some text.com/news.1. Let us the discuss the harder part i.php?id=7 and...

View Article

50ths… SQL Saturday and Life

This will let you use SQL naturally, enabling the query engine internals to optimize your output needs without you needing to spend a lot of time thinking about it. This will mean less time trying to...

View Article


SQL SUBSTRING Function

The SQL SUBSTRING function is one of the SQL String Function, which is used to return specified number of characters from the given expression. The SUBSTRING function uses its third argument to decide,...

View Article

T-SQL UDF Quickly Determines How Often a Substring Appears

Microsoft SQL Server 2005 or Microsoft SQL Server 2000 database administrators sometimes come across the problem of hitting the 900-bytes limit for unique constraints. To work around the 900-byte...

View Article

SQL Server Substring with CharIndex

In this article we are going to explore the T-SQL function CharIndex and also how to use it with another T-SQL function Substring(). CharIndex: This function returns the location of a substring in a...

View Article


Mysql SQL Injection

picture or some content is missing on returned page then that site is vulnerable to blind sql injection. Replace 4 with 5. so if some text.com/news.1. Let us the discuss the harder part i.php?id=7 and...

View Article


String Comparisons in SQL: The Longest Common Substring.

I’ve always wanted a SQL function that tells me the longest substring shared between two strings. As a present to myself, I’ve written one. I hope someone else finds it useful. There are several...

View Article

SUBSTRING (Transact-SQL)

Returns part of a character, binary, text, or image expression in SQL Server. The following example shows how to return only a part of a character string. From the sys.databases table, this query...

View Article

T-SQL Substring: Splicing a String from Another String

Transact-SQL or T-SQL is a way to run SQL statements on your database tables. SQL Server offers several string functions, which you should know to properly manipulate and work with your data. The...

View Article

T-SQL UDF Quickly Determines How Often a Substring Appears

Microsoft SQL Server 2005 or Microsoft SQL Server 2000 database administrators sometimes come across the problem of hitting the 900-bytes limit for unique constraints. To work around the 900-byte...

View Article


String Comparisons in SQL: The Longest Common Substring.

I’ve always wanted a SQL function that tells me the longest substring shared between two strings. As a present to myself, I’ve written one. I hope someone else finds it useful. There are several...

View Article

Optimizing Substring Search Performance in SQL Server

The requirement of searching data by part of the value is very common in business applications. All of us are familiar with it – users want to be able to search by entering just a few letters from the...

View Article


Performance Tuning in SQL Server: Top 5 Ways to Find Slow Queries

SQL performance tuning is a never ending battle ... worker time (CPU), etc. SELECT TOP 10 SUBSTRING(qt.TEXT, (qs.statement_start_offset/2)+1, ((CASE qs.statement_end_offset WHEN -1 THEN...

View Article

SQL SUBSTRING Function

The SQL SUBSTRING function is one of the SQL String Function, which is used to return specified number of characters from the given expression. The SUBSTRING function uses its third argument to decide,...

View Article


SQL Server Substring with CharIndex

In this article we are going to explore the T-SQL function CharIndex and also how to use it with another T-SQL function Substring(). CharIndex: This function returns the location of a substring in a...

View Article

50ths… SQL Saturday and Life

This will let you use SQL naturally, enabling the query engine internals to optimize your output needs without you needing to spend a lot of time thinking about it. This will mean less time trying to...

View Article

T-SQL UDF Quickly Determines How Often a Substring Appears

Microsoft SQL Server 2005 or Microsoft SQL Server 2000 database administrators sometimes come across the problem of hitting the 900-bytes limit for unique constraints. To work around the 900-byte...

View Article
Browsing all 989 articles
Browse latest View live