sqlite3 varchar matching with “like” but not “=”

前端 未结 2 935
走了就别回头了
走了就别回头了 2021-01-03 12:32

Using Rails 3.1 and sqlite3 for development, test environments.

Added a new table in a migration:

create_table :api_keys do |t|
  t.string :api_key
          


        
2条回答
  •  春和景丽
    2021-01-03 13:16

    If you are using strings of hex digits, it is important that you have a case match if you want to use an where x = y select. Unlike some databases, SQLite is case sensitive.

提交回复
热议问题