I’m using PostgreSQL with pgadmin.
I need to replace multiple characters in all fields of type string, and in all tables in my database.
I’m using PostgreSQL with pgadmin. I need to replace multiple characters in all fields
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use the below with caution – adjust as necessary, and make sure you review each and every resultant query (yes – this generates a resultset of queries) before copying the results and executing – as this may include queries that would attempt to modify views, calculated fields, system tables etc. etc.
I’m a T-SQL’er – but I believe the below should be valid in PostgresSQL.
For additional information, which may provide ideas on how to adjust this query, check out INFORMATION_SCHEMA.COLUMNS.