質問編集履歴
1
誤字修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
これはどうしたら消えるのでしょうか?
|
7
7
|
|
8
8
|
```シェルスクリプト
|
9
|
-
table="SELECT concat('p_id=', id), concat('p_first=', first), concat('p_second=', second) FROM table_name ORDER BY time DESC LIMIT 1;"
|
9
|
+
table_name="SELECT concat('p_id=', id), concat('p_first=', first), concat('p_second=', second) FROM table_name ORDER BY time DESC LIMIT 1;"
|
10
10
|
echo "${table_name}"
|
11
11
|
table_name=$(mysql -u"${user}" -p -D"${dbname}" -hlocalhost -e"${table_name}")
|
12
12
|
|