Angel
Angel

Reputation: 11

SQL Remove element from all columns on a table

Hi I have a table with around 30 columns all column title have ". I will like to know if on sql have a script to replace the " for none.

Example

"ID"  |"Color"  |"Size"  | "Price" ....
 1    |  Red    |  3     |$50.00
 2    |  Blue   |  5     |$30.00

And I will like to look like:

ID  | Color  | Size  | Price ....
1   | Red    |  3    | $50.00
2   | Blue   |  5    | $30.00

Upvotes: 0

Views: 47

Answers (1)

Ajith lal
Ajith lal

Reputation: 81

Do like this for all columns:

ALTER TABLE blog RENAME COLUMN "ID" ID;

Upvotes: 1

Related Questions