PostgreSQL Fehler auf einen Null -Wert einfügenPhp

PHP-Programmierer chatten hier
Anonymous
 PostgreSQL Fehler auf einen Null -Wert einfügen

Post by Anonymous »

Ich erhalte einen seltsamen Fehler, wenn ich versuche, eine Einfügungsabfrage in einer PostgreSQL -Datenbank auszuführen. Ich führe die folgende Abfrage aus: < /p>
insert into "shopping_carts"
(
"application_version", "charges", "device_id", "device_type", "id", "new_client",
"os_version", "platform_name", "resolution", "shopping_cart_date",
"shopping_cart_date_day", "shopping_cart_date_day_of_week",
"shopping_cart_date_day_of_year", "shopping_cart_date_hour",
"shopping_cart_date_minute", "shopping_cart_date_month",
"shopping_cart_date_numeric", "shopping_cart_date_quarter",
"shopping_cart_date_quarter_name", "shopping_cart_date_second",
"shopping_cart_date_week_of_year", "shopping_cart_date_year", "status",
"store_id", "store_name", "tip", "total_after_discounts", "total_discount",
"total_items", "user_gender", "user_id", "whim_has_photo", "whim_what",
"whim_where"
)
values
(
2.0, 0.0, '105755B41135E2A6F5C09089EE776BA179A4DD290E27B6DC11AFC94534572BD7',
'smartphone', 'QWFISFJ23434', true, 'Ubuntu 15.10', 'ios', '1920x1080',
'2016-06-20 18:42:15', 20, 1, 171, 18, 42, 6, 1466448135, 2, 'Second Quarter',
15, 25, 2016, 'PROGRESS', 15, 'BOG F. Centro Andino', 0, 0, 0, 0, 'M', 32,
TRUE, 'Lechona', 'Lechoneria de la esquina'
)
< /code>
Der Fehler lautet: < /p>

Kernel-Fehler: Fehler: Nullwert in der Spalte "Tipp" verletzt die nicht-null-Einschränkung < /p>
Detail: Versagene Reihe enthält (Qwfisfj23434, 0, 0, 0, 0, 0, Fortschritt, Nr. Null, Null, 32, M, Ubuntu 15.10, 1920x1080, 2.0, iOS, 105755b41135e2a6f5c089ee776ba179A4DDD290E27B6DC11AFC94534572BD7, Smartphone, 2016-06-20 18:42:15, 146615, 2015, 2016-06-20 18:42:15. 2016, 6, 20, 2, Second Quarter, 171, 1, 25, 18, 42, 15, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, NULL, NULL, T, NULL, NULL, NULL, NULL, NULL, NULL). Eine seltsame "t".
Die Tabelle copping_carts hat mehr Spalte, aber sie sind alle nullbar. /> Vielen Dank für jede Hilfe, die Sie mir geben können. < /p>

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post