1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

SQLを入力しても何も返されない

1
Posted at

うまくいっているかすらわからずに沼ったので投稿します。

原因

末尾の;をつけ忘れている

詳細

SQLの末尾の;は、現代的なDBツールやライブラリでは基本的に省略しても自動で補完される。

しかし、サーバ上のDBにアクセスする際などでターミナルから直接DBに入ってSQLを実行する場合、;を省略すると複数行のSQLと判定され実行自体がされない。(実行されないためエラーを含め何のレスポンスも返されない)

また、極端に古いツールだと;の補完をしてくれないこともある。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?