有没有办法在表的sqlite3列中存储包含SQL代码的大型字符串(如子字符串)?(避免sql注入和所有我可能会忘记的安全内容)而不是寻找存储过程之类的东西。只需在其中存储带有sql查询的文本(用于通知用途)。我需要存储这样的字符串(它包含像substring这样的SQL代码):"bla foo bla foo bla SELECT * FROM TABLE bla foo bla foo bla bla“
我尝试在我的项目中安装Postgresql而不是sqlite3,因为我知道Heroku需要它。但不知何故,在我的文件中的某个地方,我失败了。remote: 'yum install sqlite-devel' or 'apt-get install/gem_make.out
remote: An error occurred while installing sqlit
我试图在Ubuntu上安装“包安装”,而sqlite3 -v '1.3.4‘却丢失了。当我尝试gem install sqlite3 -v '1.3.4'时,我得到了以下内容
ERROR: (I have installed libsqli3-dev and sqlite3-ruby -Results logged to /home/jars/.rvm/gems/ruby-1.9.2-p290/gems/sqlite3-1.3.4/ext/
lib/active_record/connection_adapters/connection_specification.rb:176:in `rescue in spec': Specified 'sqlite3Add `gem 'sqlite3'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord以获得更多启动选项
2017年-05-29T21:10:39.98332