Skip to content
Advertisement

SQL writing format

I would like to inner join to tables with sql like this:

I observed that a key name column called “id” exists in both table, and therefore $id = $record_unscored[‘id’]; would be overwritten;

I tried $id = $record_unscored[‘user.id’]; but it’s not working! Actually how shall I specify the table name as well?

Advertisement

Answer

Use aliases:

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement