[英]Rails PG::UndefinedTable: ERROR: missing FROM-clause entry for table
[英]ERROR: missing FROM-clause entry for table “testing”
当我从postgres用户帐户运行psql命令时,如下所示:
sudo -i -u testuser psql testdb -c 'select * from "USER" where "LogInName"='TESTING';'
所以我能为这个案子做些什么,谢谢你的回答。
你可以在这里提到的postgres中使用dollar-quoted-string
sudo -i -u testuser psql testdb -c 'select * from "USER" where "LogInName"=$$TESTING$$;'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.