मैं postgresql पर एक साधारण अद्यतन क्वेरी बनाने की कोशिश कर रहा हूं। मैं वास्तव में त्रुटि को समझ नहीं पा रहा हूं क्योंकि कोई बूलियन मान या कॉलम प्रकार नहीं है।postgresql अद्यतन त्रुटि "त्रुटि: प्रकार बूलियन के लिए अमान्य इनपुट वाक्यविन्यास:"
cat=> UPDATE categories SET epekcategoryid='27af8b1e-c0c9-4084-8304-256b2ae0c8b2' and epekparentcategoryid='root' WHERE categoryId='281' and siteid='0' and categoryparentid='-1'; ERROR: invalid input syntax for type boolean: "27af8b1e-c0c9-4084-8304-256b2ae0c8b2" LINE 1: UPDATE categories SET epekcategoryid='27af8b1e-c0c9-4084-830...
तालिका config:
cat=> \d categories; Table "public.categories" Column | Type | Modifiers ----------------------+-----------------------+----------- categoryid | character varying(32) | categoryname | text | siteid | integer | categoryparentid | character varying(32) | status | integer | default 0 epekcategoryid | text | epekparentcategoryid | text | categorylevel | character varying(37) | categoryidpath | character varying(37) |
'कहां श्रेणी आईडी =' 281 'और साइटिड = 0 और श्रेणीपी arentid = '- 1'; ' – wildplasser
अद्यतन श्रेणियां SET epekcategoryid = '27af8b' और epekparentcategoryid = 'root' जहां श्रेणी आईडी = '281' और साइटिड = 0 और categoryparentid = '- 1'; – themihai