我需要从图像表中选择数据。每个图像都存储了宽度和高度,但我想计算区域,以便选择更大或更小的图像,无论宽高比如何。
目前我有SELECT * FROM image WHERE width >= 640 AND height >= 480
,但是如果图片很宽但不是很高,这显然不起作用。
有没有办法在SELECT * FROM image WHERE [area calculated from image] >= [area calculated from query width and height]
?
谢谢。