Field 'position' doesn't have a default value

Code:
ALTER TABLE %table% MODIFY %column% %type% DEFAULT '%value%';
%table% = table of course.
%column% = the column name.
%type% = this is a few examples, int(11) or varchar(255)
%value% = the value of the default column.
 
Upvote 0
Code:
ALTER TABLE %table% MODIFY %column% %type% DEFAULT '%value%';
%table% = table of course.
%column% = the column name.
%type% = this is a few examples, int(11) or varchar(255)
%value% = the value of the default column.
so i copy that code and run the query then
 
Upvote 0
Go to your database, open it, now if you're using Navicat right click the user column, click design table, scroll down to you see where it says 'position' and make sure it's default is set to NULL like this;

sqdBxMN - Field 'position' doesn't have a default value - RaGEZONE Forums


OR if you use Xampp go to your link/phpmyadmin, select your database, go to the users table, click the structure button, scroll down till you see position, click edit (the pencil icon to the right of it) and set it's default to NULL.
ty fataLulz i dont use xmapp you should know that i useing iis but i folow your step as it works well thanks anyway u 2
 
Upvote 0
Back