如何选择 x > 的行y
有谁知道如何选择 x > 的那些行y,其中 x 和 y 都是表列。
$query = mysql_query("SELECT * FROM table WHERE x > '???' ");
Does anyone know how to select those rows where x > y, where x and y both are table columns.
$query = mysql_query("SELECT * FROM table WHERE x > '???' ");
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
要获取
x
列值大于y
列值的所有行,就这么简单。To get all rows where the column
x
value is greater than that in columny
it is this simple.您可以在值有效的任何位置指定列名,甚至可以在关系运算符的两侧指定。
You can specify column names anywhere a value would be valid, even on both sides of a relational operator.