as stated in this section, I don’t want to return the first two letters of the returned values just an example: select the company name from the companies returns companyX
Is it possible to write a query that returns panyX instead?
Thanks in advance
select right(companyname, len(companyname)-3) as companyname will do this (this should work on microsoft T-SQ, see more string functions here )
select right(companyname, len(companyname)-3) as companyname
Since you are not saying which RDBMS you are using, here is the ANSI answer:
SELECT SUBSTRING(mycolumn,3,CHARACTER_LENGTH(mycolumn))
SELECT SUBSTRING (company name, 3, len (company name) - 2) FROM companies
Here is a bunch of sql row processing tools
Tutorial 4: SQL Functions
SELECT SUBSTR (COMPANY, 3) FROM COMPANIES;
u can solve the problem using the following queries,
--> select substring([image],4,len([image]))from dbo.emp --> select replace([image],'ima','') from dbo.emp
thanks
Venkat
Source: https://habr.com/ru/post/1312403/More articles:shell script arithmetic operations - unixThreads and iterations through changing collections - collectionsHow to create a hierarchy using HTML - htmlhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1312401/msdtc-attempts-to-enlist-client-machine-in-a-distributed-transaction&usg=ALkJrhggA3-kkdo_99vkdkH7P8a-ZGuQAwDisplaying references to Flex objects - garbage-collectionHow to avoid black background when rotating an image 45 degrees using PHP? - phpHtml.EditorFor Global Template? - c #How to create a horizontal table in one foreach loop in MVC? - foreachHow to find out if QLineEdit received focus? - c ++Import data from a text file using python - pythonAll Articles