SQL SUBSTRING - Overview, syntax

          

SQL SUBSTRING


SQL SUBSTRING - Introduction and syntax

<<Previous  Next>>

SQL - Dec 03, 2008 at 18:00 PM by Rajmeet Ghai

Explain the SQL SUBSTRING statement. Write SQL syntax for the SQL SUBSTRING statement along with an example.

SQL SUBSTRING: The Substring function in SQL is used to capture a portion of the stored data

Syntax:
SUBSTR(str,pos,len): Starting with the th character in string and select the next characters.

Example:
SELECT SUBSTR(company_name, 3) FROM Company WHERE company_name = ‘tata’;


<<Previous  Next>>
Also read
SQL Server Optimization Tips

Answer - Restricting query result means return of required rows instead of all rows of the table. This helps in reducing network traffic......

Having clause and Where clause

Answer - Both are used for filtering of records based on filtered criteria.....

Define data, entity, domain and referential integrity.

Answer - Data Integrity validates the data before getting stored in the columns of the table. SQL Server supports four type of data integrity.....

Describe in brief exporting and importing utility?

Answer - The Bulk Copy is a command utility that transfer SQL data to or from a data file.
This utility mostly used to transfer huge data to SQL server from other database....

Question: What is XPath?

Answer - XPath is a language defined by the W3C, used to select nodes from XML documents. ....

Question: Define the rules for designing Files and File groups in SQL Server.

Answer - A file or file group can only be used by one database. For example, the files abc.mdf and abc.ndf contains....



Write your comment - Share Knowledge and Experience


 
Latest placement tests
Latest links
 
Latest MCQs
» General awareness - Banking » ASP.NET » PL/SQL » Mechanical Engineering
» IAS Prelims GS » Java » Programming Language » Electrical Engineering
» English » C++ » Software Engineering » Electronic Engineering
» Quantitative Aptitude » Oracle » English » Finance
Home | About us | Sitemap | Contact us | We are hiring