2014-05-15 57 views
-1

如何计算mysql上的A和B的最小数目?如何计算mysql上的A和B的最小数目?

命令'min()'表示SQL上的其他内容。

+0

你可能想'LEAST()'[两个(或更多)的给定值中的MySQL选择最小/最大]的 –

+2

可能重复( http://stackoverflow.com/questions/19445828/mysql-select-minimum-maximum-among-two-or-more-given-values) – Stijn

+0

你见过http://dev.mysql.com/doc/refman/ 5.0/en/comparison-operators.html? – Rorschach

回答

1

正确的函数从两个数字得到了最低数量:

LEAST() 
相关问题