Thursday, October 8, 2009

Replace String Function

-- to replace characters in a field the following query can be userd
--in this example the quartor was spelt wrong so we use this query to update
quarter_name --- is the field name
quartor -- is the characters to be replaced
quarter -- is the one to be replace with
update tblbsbcalendar set quarter_name = replace(quarter_name,'Quartor','Quarter')

1 comment:

  1. get the Excel repair utility to fix data corruption issues in the files of specified format

    ReplyDelete