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.
是在 MySQL 中还是在编程中……无法弄清楚!
在 mysql 表中,数量设置为“int”数据类型。您可以更改表格并将其更改为“varchar”数据类型,这样您也可以在其中包含字母。
尝试这样的事情:
ALTER TABLE t1 更改数量数量 VARCHAR(255);