Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sockets/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
net和mysql检索3行的所有列_Mysql_Sql_Database_Join - Fatal编程技术网

net和mysql检索3行的所有列

net和mysql检索3行的所有列,mysql,sql,database,join,Mysql,Sql,Database,Join,如何从3个表中检索所有列的数据,其中1个表的引号没有主键,而其他2个表的引号没有外键如果我得到了您想要的,您可以使用join select * from table2,table3 join table1 on table1.id = idfkey where table3.idfkey = table2.idfkey

如何从3个表中检索所有列的数据,其中1个表的引号没有主键,而其他2个表的引号没有外键如果我得到了您想要的,您可以使用join

    select * from table2,table3 
    join table1 on table1.id = idfkey 
    where table3.idfkey = table2.idfkey