![](/img/trans.png)
[英]MySQL get count of all rows in another table where the value equals column in current table
[英]MySQL statement to get a column's value from all rows where another column's value = a specified value
有人可以告诉我一条MySQL语句,该语句将在列教师的值等于charles的所有行中获得列Student的值吗?
如果此信息在同一表中,则
select student from table_name where teacher = 'charles'
如果您有3张应有的表格(教师,学生和教师教师的M:N表),请发表评论,因为您需要加入。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.