質問編集履歴
5
間違いを修正しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
追記2:MYSQLのエラーです。コードは以下です。
|
7
7
|
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ccode FROM `atable` LEFT JOIN `btable` ON `atable`.`acode`=`btable`.`acode` at line 1
|
8
8
|
|
9
|
-
btableとatable(ctable)と一致しているのはacode
|
9
|
+
btableとatable(ctable)と一致しているのはacodeのみです。
|
10
10
|
|
11
11
|
atable
|
12
12
|
acode
|
4
間違いを修正しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
追記2:MYSQLのエラーです。コードは以下です。
|
7
7
|
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ccode FROM `atable` LEFT JOIN `btable` ON `atable`.`acode`=`btable`.`acode` at line 1
|
8
8
|
|
9
|
-
btableとatable(ctable)と一致しているのはccodeのみです。
|
9
|
+
btableとatable(ctable)と一致しているのはacodeとccodeのみです。
|
10
10
|
|
11
11
|
atable
|
12
12
|
acode
|
3
誤字を修正しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
追記:データベースエンジンはMYSQLです。
|
4
4
|
ccodeがあるのはbtableのみで、データ並びはSELECTしているacolとbcolのみで、ccodeでソートしたものが必要です。
|
5
5
|
|
6
|
-
追記2:MYSQLのエラーです。コード
|
6
|
+
追記2:MYSQLのエラーです。コードは以下です。
|
7
7
|
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ccode FROM `atable` LEFT JOIN `btable` ON `atable`.`acode`=`btable`.`acode` at line 1
|
8
8
|
|
9
9
|
btableとatable(ctable)と一致しているのはccodeのみです。
|
2
エラー内容、各テーブルの項目にういて
title
CHANGED
File without changes
|
body
CHANGED
@@ -3,6 +3,11 @@
|
|
3
3
|
追記:データベースエンジンはMYSQLです。
|
4
4
|
ccodeがあるのはbtableのみで、データ並びはSELECTしているacolとbcolのみで、ccodeでソートしたものが必要です。
|
5
5
|
|
6
|
+
追記2:MYSQLのエラーです。コード配下です。
|
7
|
+
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ccode FROM `atable` LEFT JOIN `btable` ON `atable`.`acode`=`btable`.`acode` at line 1
|
8
|
+
|
9
|
+
btableとatable(ctable)と一致しているのはccodeのみです。
|
10
|
+
|
6
11
|
atable
|
7
12
|
acode
|
8
13
|
bcode
|
1
データベースエンジンと結果の説明を投稿しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
atableとbtableをソートのために連結させて運用してましたが、ctableを結合させる必要が出来たためUNIONで対応しようとしています。
|
2
2
|
|
3
|
+
追記:データベースエンジンはMYSQLです。
|
4
|
+
ccodeがあるのはbtableのみで、データ並びはSELECTしているacolとbcolのみで、ccodeでソートしたものが必要です。
|
5
|
+
|
3
6
|
atable
|
4
7
|
acode
|
5
8
|
bcode
|