If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Equivilent Of SQL Server LEFT Function

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-09-03, 07:42
Shandy Shandy is offline
Registered User
 
Join Date: Jun 2003
Location: Colombo, Sri Lanka
Posts: 6
Question Equivilent Of SQL Server LEFT Function

Does the equivilent of a LEFT function in SQL Server exist in Informix? I am trying to perform the following statement:
DELETE FROM tctstam WHERE LEFT(Style, 1) = 'O'
i.e. delete all records from the tctstam table where the first character of the Style field is a 'O' character.
I am using VB/ADO/ODBC to perform the delete.
Reply With Quote
  #2 (permalink)  
Old 10-09-03, 09:34
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Re: Equivilent Of SQL Server LEFT Function

Quote:
Originally posted by Shandy
Does the equivilent of a LEFT function in SQL Server exist in Informix? I am trying to perform the following statement:
DELETE FROM tctstam WHERE LEFT(Style, 1) = 'O'
i.e. delete all records from the tctstam table where the first character of the Style field is a 'O' character.
I am using VB/ADO/ODBC to perform the delete.
Hi,

Depending on Informix version it's exist, now test with

DELETE FROM tctstam WHERE Style[1, 1] = 'O'

Gustavo.
Reply With Quote
  #3 (permalink)  
Old 10-09-03, 10:47
Shandy Shandy is offline
Registered User
 
Join Date: Jun 2003
Location: Colombo, Sri Lanka
Posts: 6
Thumbs up

Thanks. That works a treat
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On