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.
如何获得整数的前 5 位?
非常感谢你。
MySQL 中的前 5 行:
SELECT * FROM table_name LIMIT 5
32 位整数的前五位:
(a >> 27)
MySQL 中 32 位整数字段的前五位:
SELECT (field >> 27) FROM table_name
整数类型(精确值) - INTEGER、INT、SMALLINT、TINYINT、MEDIUMINT、BIGINT
位功能