Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Too many arguments, expected arguments "command" "sql"

Tags:

php

I've got a problem when I write the command :

php bin/console doctrine:query:sql 'SELECT * FROM comment'

after enter I got this :

2019-03-24T13:20:10+00:00 [error] Error thrown while running command "doctrine:query:sql "'SELECT" "*" FROM "comment'"". Message: "Too many arguments, expected arguments "command" "sql"."

Too many arguments, expected arguments "command" "sql".

so what did I make so wrong ? thank you

like image 812
Chrys Avatar asked Mar 24 '19 13:03

Chrys


1 Answers

Did you see persisting-objects-to-the-database this document?

# on Windows systems not using Powershell, run this command instead: php bin/console doctrine:query:sql "SELECT * FROM product"

You need to use " double quote instead of ' single quote

php bin/console doctrine:query:sql "SELECT * FROM comment"

like image 108
Saji Avatar answered Sep 23 '22 13:09

Saji