从MySQL中的2个表中获得具有相同用户ID的数据的数据
我正在使用mysql 我有一个表名“事务”,其中有10列,还有另一个表“用户”,其中有10列。 现在,我想要的是从交易表中获取一些数据以及从用户表中获取一些数据。 例如,我想要诸如
name,srname,age
from 'transaction' table
& i want phone number from 'user' table
“在表中都常见的用户ID”之类的数据
I'm using MYSQL
I have a table name "Transaction" which have 10 columns in it and there is another table name "user" which have 10 columns in it.
Now what i want is to get the some data from Transaction table and some data from User table.
for eg, I want data like
name,srname,age
from 'transaction' table
& i want phone number from 'user' table
"UserID is common in both the table"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
类似
Something like