Phpmyadmin未创建新列

时间:2019-03-07 12:54:55

标签: mysql phpmyadmin

我正在尝试在phpmyadmin中为数据库表创建新列,但是我一直在下面获取它。另外我注意到我无法在下拉列表中将其移动列字段更改为全灰色

预览为

ALTER TABLE `jobs` ADD `job_title` VARCHAR(255) NOT NULL AFTER ;

我不久后收到此错误

   Notice in ./libraries/classes/CreateAddField.php#152
 Undefined index: after_field

Backtrace

./libraries/classes/CreateAddField.php#113: PhpMyAdmin\CreateAddField->setColumnCreationStatementSuffix(
integer 0,
integer -1,
boolean false,
)
./libraries/classes/CreateAddField.php#302: PhpMyAdmin\CreateAddField->buildColumnCreationStatement(
integer 1,
boolean false,
)
./libraries/classes/CreateAddField.php#536: PhpMyAdmin\CreateAddField->getColumnCreationStatements(boolean false)
./tbl_addfield.php#69: PhpMyAdmin\CreateAddField->tryColumnCreationQuery(

1 个答案:

答案 0 :(得分:0)

您需要添加“名称”列,之后再添加

ALTER TABLE `jobs` ADD `job_title` VARCHAR(255) NOT NULL AFTER yourcolumnName