1
我使用的数据类型包含字符(6)字段。我想将其更改为varchar(7)字段。不幸的是,我在使用PostgreSQL 8.3.8的服务器上,而当时ALTER TYPE没有太多的功能。这个列也被多个函数使用,所以它不会让我删除该属性,并用正确的参数放入一个新的属性。PostgreSQL中的改变类型8.3.8
这里就是我的意思是:
mydb=# \d t_emp_start_stop_2
Composite type "public.t_emp_start_stop_2"
Column | Type
--------------+--------------
employee_id | character(6)
normal_start | integer
normal_stop | integer
normal_lunch | integer
我想用一个varchar(7)现场更换EMPLOYEE_ID。有没有办法做到这一点干净?
8.3x是生命的尽头...所以考虑更新(独立于您的问题...) – frlan