26.08.2015, 08:52
Quote:
I noticed that Query is being executed correctly but it does not create a new row each time I complete a register.
I have been brainstorming looking at topics till now but couldn't find a solution. Here is my code pawn Код:
Код:
[23:56:22] [join] DarkLored has joined the server (0:127.0.0.1) [23:56:24] INSERT INTO users (username, password) VALUES ('DarkLored', '947BDCAF9B8FAC501D1C9DAA37DC57714F85AA0D781B18914B29BCF379DFBA665BBEDC15817873B1D92ADE4ABFE8ECDC8EBFC07F463D268ED4C595B4E383A8DB') [23:56:35] [part] DarkLored has left the server (0:1) |
This query won't execute, because of NOT NULL attribute, which is assigned for each column in this table (see the CREATE TABLE.. structure).
There are (I guess only those are) 3 possible solutions:
- You've to remove NOT NULL attribute from table structure
- You have to assign values in 'INSERT INTO' query FOR EACH column in this table
- Recreate this table structure and assign the default values for each column, so that You won't worry about assigning values for each column in one single query.
Greetings.