请考虑下面给出的场景
我在 sql 表中有两个表,比如 User
+----+-----------+------------+-------------+-----------+----------+------+-------------+-------------+-----------+-----------+---------+------------+--------+-----------+--------+----------------+------------------+------------------+--------------------+--------------------------+-----------------+-------+--------------+---------------+
| id | user_name | first_name | middle_name | last_name | password | role | org_name_id | timezone_id | city | state | country | street | pin | user_type | status | primary_mobile | secondary_mobile | primary_landline | secondary_landline | primary_email | secondary_email | notes | date_created | date_modified |
+----+-----------+------------+-------------+-----------+----------+------+-------------+-------------+-----------+-----------+---------+------------+--------+-----------+--------+----------------+------------------+------------------+--------------------+--------------------------+-----------------+-------+--------------+---------------+
| 1 | Vivek | vicky | singh | baghel | 12345 | | 1 | 1 | Gwalio | Mp | iNDIA | Belly Road | 47001 | | NULL | 65677 | 68990 | 678888897 | 67678 | vickysingh@gmail.com | hi@viv.com | | NULL | NULL |
第二个是会议桌
| id | name | meetingID | meeting_type | status | recurring_time | attendee_passwd | moderator_passwd | date_created | timezone | meeting_datetime | reminder | duration | created_by_id | sms_no | conferenceID | meeting_logout_url | max_participants | participants_id |
+----+-------------+---------------+--------------+--------+----------------+-----------------+------------------+---------------------+----------+---------------------+----------+----------+---------------+--------+--------------+--------------------+------------------+-----------------+
| 1 | New Meeting | REG_892983853 | | NULL | | 23303 | 94842 | 0000-00-00 00:00:00 | GMT 10 | 2012-08-08 12:00:00 | 0 | 60 | 1 | 123 | NULL | http://lov.com | 20 | NULL |
| 2 | Before3 | REG_860806066 | | NULL | | 95390 | 28030 | 0000-00-00 00:00:00 | GMT 10 | 2012-08-08 03:00:00 | 0 | 60 | 1 | 123 | NULL | http://lov.com | 20 | NULL |
我正在尝试沿 user_name 获取会议详细信息,因此我正在查询
$get_meetingsql = "SELECT u.user_name from demo_user inner join demo_meeting m on m.created_by_id= u.id";
不幸的是,上面的查询对我不起作用,请帮助我