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

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


How to calculate barcode check-digit using T-SQL language

How can you translate the standard algorithm to T-SQL code? One possible solution could be implemented ... tmpCode)) BEGIN SET @List = @List + '|' + LTRIM(RTRIM(STR(@j))) + ';' + SUBSTRING(@tmpCode,...

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

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

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


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

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


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


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

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

Virtual Date Column as paritition doesn't work

SQL> create table t ( 2 REF_NO VARCHAR2(100) , 3 REF_DATE DATE GENERATED ALWAYS AS (CASE 4 WHEN REF_NO LIKE 'XX%' 5 THEN...

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


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 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


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

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


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

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

Virtual Date Column as paritition doesn't work

SQL> create table t ( 2 REF_NO VARCHAR2(100) , 3 REF_DATE DATE GENERATED ALWAYS AS (CASE 4 WHEN REF_NO LIKE 'XX%' 5 THEN...

View Article
Browsing all 989 articles
Browse latest View live