我需要对两个表进行查询,并且列是不同的类型。而且我无法调整表格。有可能吗?
那就是查询 whitsch 不起作用:
$query = "SELECT table1.column_content
FROM table1 OUTER JOIN table2 ON table1.int_column = table2.varcharcolumn
WHERE (((table2.uid)=$uid))";
我需要这样的东西:
$query = "SELECT table1.column_content
FROM table1 OUTER JOIN table2 ON CONVERT(table1.int_column, VARCHAR) = table2.varcharcolumn
WHERE (((table2.uid)=$uid))";
谢谢结核病