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 > Pervasive.SQL > Pervasive SQL equilivent for INSTR

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-30-10, 00:42
Manah Manah is offline
Registered User
 
Join Date: Feb 2005
Posts: 19
Pervasive SQL equilivent for INSTR

Is there a function/procedure to replace full stops in a particular field with a blank.

Example: P.O.Box ABC with P O Box ABC

Thanks
Reply With Quote
  #2 (permalink)  
Old 04-30-10, 07:23
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
What version of PSQL?
I did the following using the REPLACE function:
Code:
create table dbf (f1 char(10))#
insert into dbf (f1) values ('P.O. Box')#
select f1, replace(f1,'.',' ') from dbf#
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
  #3 (permalink)  
Old 05-06-10, 21:11
Manah Manah is offline
Registered User
 
Join Date: Feb 2005
Posts: 19
I never thought of the 'replace' command, it works perfectly.

Thanks for your assistance with this.
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On