以下のシナリオを検討してください
ユーザーのようなSQLテーブルに2つのテーブルがあります
+----+-----------+------------+-------------+-----------+----------+------+-------------+-------------+-----------+-----------+---------+------------+--------+-----------+--------+----------------+------------------+------------------+--------------------+--------------------------+-----------------+-------+--------------+---------------+
| 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 |
2つ目は次のような会議テーブルです
| 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";
残念ながら、上記のクエリは私には機能しません。助けてください