sql - Postgres 9.3 index involving JSON column -


I have this table structure:

  create table user_times (user_id bilitates user ID ), Does not have item_id statement reference id (id), call 1 Jason defaults '[[{{"text": ""}], Cole 2 Jason defaults' [["", "", "text": " "}", "Colle 3 Jason Defaults" {{"text": ""} ', primary key (user_id, item_id))  

I will run queries like this: / P> SELECT * to user_items WHERE item_id = '?'

And if so, then what is it?

This is the right way to do this, because postgres are throwing an error when trying Because col1 is a JSON type.

I suggest using one of the item_id on:

  Create E.E.I.ID on item_id (item_id) where call is not 1  
< The data type of p> col1 is irrelevant here.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -