Sybase/ALTER 表 : how to turn an existing column from non-nullable to nullable?

标签 sybase alter-table

希望标题已经很清楚了。

我想看一个更改表语句的示例,该语句可以将 Sybase 表中现有的不可为空的列更改为可以为空。

最佳答案

Modifying the NULL default value of a column :

If you are changing only the NULL default value of a column, you do not need to specify a column's datatype



(从上面的链接切换示例):

alter table authors
modify address null

关于Sybase/ALTER 表 : how to turn an existing column from non-nullable to nullable?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6593411/

相关文章:

sql - 如何使用 SQL*Plus 从 Oracle 复制到 Sybase?

string - Sybase,将字符串作为 sql 查询执行

sql-server - 在不删除sql server中的表的情况下无法添加列

mysql - 我的表最后一次更改是什么时候?

java - 将 VARBINARY 值隐式转换为 NUMERIC 字段期间出现域错误?

c# - Fluent NHibernate 生成的列名别名太长

iphone - Sybase控制中心iphone模拟器注册失败

mysql - 在 CREATE TRIGGER 的 ALTER TABLE 中使用查询

mysql - H2 添加多列 MySQL 语法

mysql - 如果 pt-online-schema-change 工具中止,它会做什么?