Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要更改数据库中的记录,例如:
" player ID" 正好是 11 位数字,我做了decimal(11,0),但我可以添加 3 或 4 位数字。
player ID
decimal(11,0)
对此有什么帮助吗?
尝试这个
alter table tablename modify playerID decimal(20,0)
如果你想换成新的类型,试试这个
ALTER TABLE mytable ALTER COLUMN mycolumn newtype