![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I'm using postgres sql 8.1x anyone can help convert a character varying to int? I have a table with : attribute | character varying(20) and I need to convert it to numbers so I can do some calculation. tried select cast(privilege.value as int) |
#3
| |||
| |||
|
|
Hi, I'm using postgres sql 8.1x anyone can help convert a character varying to int? I have a table with : attribute | character varying(20) and I need to convert it to numbers so I can do some calculation. tried select cast(privilege.value as int) |
#4
| |||
| |||
|
|
Hi, I'm using postgres sql 8.1x anyone can help convert a character varying to int? I have a table with : attribute | character varying(20) and I need to convert it to numbers so I can do some calculation. tried select cast(privilege.value as int) |
#5
| |||
| |||
|
|
Hi, I'm using postgres sql 8.1x anyone can help convert a character varying to int? I have a table with : attribute | character varying(20) and I need to convert it to numbers so I can do some calculation. tried select cast(privilege.value as int) |
#6
| |||
| |||
|
|
Hi, I'm using postgres sql 8.1x anyone can help convert a character varying to int? I have a table with : attribute | character varying(20) and I need to convert it to numbers so I can do some calculation. tried select cast(privilege.value as int) |
#7
| |||
| |||
|
|
Hi, I'm using postgres sql 8.1x anyone can help convert a character varying to int? I have a table with : attribute | character varying(20) and I need to convert it to numbers so I can do some calculation. tried select cast(privilege.value as int) |
#8
| |||
| |||
|
|
Hi, I'm using postgres sql 8.1x anyone can help convert a character varying to int? I have a table with : attribute | character varying(20) and I need to convert it to numbers so I can do some calculation. tried select cast(privilege.value as int) |
#9
| |||
| |||
|
|
Hi, I'm using postgres sql 8.1x anyone can help convert a character varying to int? I have a table with : attribute | character varying(20) and I need to convert it to numbers so I can do some calculation. tried select cast(privilege.value as int) |
#10
| |||
| |||
|
|
begin RJ wrote: Hi, I'm using postgres sql 8.1x anyone can help convert a character varying to int? I have a table with : attribute | character varying(20) and I need to convert it to numbers so I can do some calculation. tried select cast(privilege.value as int) simple example: test=*# select regexp_replace('abc123def','[^0-9]','','g')::int * 10; ?column? ---------- 1230 end Andreas |
![]() |
| Thread Tools | |
| Display Modes | |
| |