logo

额外区块类型 (EBT) - 全新的布局构建器体验❗

额外区块类型 (EBT) - 样式化、可定制的区块类型:幻灯片、标签页、卡片、手风琴等更多类型。内置背景、DOM Box、JavaScript 插件的设置。立即体验布局构建的未来。

演示 EBT 模块 下载 EBT 模块

❗额外段落类型 (EPT) - 全新的 Paragraphs 体验

额外段落类型 (EPT) - 类似的基于 Paragraph 的模块集合。

演示 EPT 模块 滚动

滚动

请您紧急帮助我!我无法修复这个错误。

22/02/2025, by 匿名 (未验证)
论坛

用户警告:您的 SQL 语法存在错误;请检查与您的 MySQL 服务器版本相对应的手册,以获取在 'unsigned DEFAULT NULL, `Date birthday` VARCHAR(40) DEFAULT NULL, `Vozrast` DE' 附近使用的正确语法,查询:CREATE TABLE ankets ( `nomer` INT unsigned NOT NULL auto_increment, `F.I.O.` VARCHAR(128) NOT NULL, `Sex` VARCHAR(30) unsigned DEFAULT NULL, `Date birthday` VARCHAR(40) DEFAULT NULL, `Vozrast` DEFAULT NULL, `gragdanstvo` VARCHAR(100) DEFAULT NULL, `addres` VARCHAR(200) DEFAULT NULL, `phone` VARCHAR(30) DEFAULT NULL, `orazovna` VARCHAR(100) DEFAULT NULL, `school` VARCHAR(100) DEFAULT NULL, `Specialest qualification` VARCHAR(150) DEFAULT NULL, `Main profession (specificnosti),qualification,position` VARCHAR(300) DEFAULT NULL, `additional profession (specificnosti),qualification,position` VARCHAR(300) DEFAULT NULL, `Knowledge of foreign languages(indicate)` VARCHAR(150) DEFAULT NULL, `The ability to polzovatsa PC` VARCHAR(100) DEFAULT NULL, `The presence of the driving udostovereno (specify kategoriju)` VARCHAR(100) DEFAULT NULL, `The conditions of the last place of work` TEXT(600) NOT NULL, PRIMARY KEY (nomer) ) /*!40100 DEFAULT CHARACTER SET utf8 */ 在 Z:\home\localhost\www\Drupal\includes\database.inc 的第 550 行。

 

这是 .install 文件

<?php
/***
 * 实现 hook_schema()
 * 描述表 `anketa`。
 ***/

 
function anketa_schema()
{
		$schema = array();
		$schema['ankets']=array( 
				'fields' => array(
				'nomer' => array(
				'description' => 'ID',
				'type' => 'serial',
				'unsigned' => true,
				'not null' => true,
				),
				'F.I.O.' => array(
				'type' => 'varchar',
				'not null' => true,
				'length' => '128',
				),
				'Sex' => array(
				'type' => 'varchar',
				'unsigned' => true,
				'not null' => false,
				'length' => '30',
				),
				'Date birthday' => array(
				'type' => 'varchar',
				'not null' => false,
				'length' => '40',
				),
				'Vozrast' => array(
				'type' => 'integer',
				'not null' => false,
				),
				'gragdanstvo' => array(
				'type' => 'varchar',
				'not null' => false,
				'length' => '100',
				),
				'addres' => array(
				'type' => 'varchar',
				'not null' => false,
				'length' => '200',
				),
				'phone' => array(
				'type' => 'varchar',
				'not null' => false,
				'length' => '30',
				),
				'orazovna' => array(
				'type' => 'varchar',
				'not null' => false,
				'length' => '100',
				),
				'school' => array(
				'type' => 'varchar',
				'not null' => false,
				'length' => '100',
				),
				'Specialest qualification' => array(
				'type' => 'varchar',
				'not null' => false,
				'length' => '150',
				),
				'Main profession (specificnosti),qualification,position' => array(
				'type' => 'varchar',
				'not null' => false,
				'length' => '300',
				),
				'additional profession (specificnosti),qualification,position' => array(
				'type' => 'varchar',
				'not null' => false,
				'length' => '300',
				),
				'Knowledge of foreign languages(indicate)' => array(
				'type' => 'varchar',
				'not null' => false,
				'length' => '150',
				),
				'The ability to polzovatsa PC' => array(
				'type' => 'varchar',
				'not null' => false,
				'length' => '100',
				),
				'The presence of the driving udostovereno (specify kategoriju)' => array(
				'type' => 'varchar',
				'not null' => false,
				'length' => '100',
				),
				'The conditions of the last place of work' => array(
				'type' => 'text',
				'not null' => true,
				'length' => '600',
				),
			),
			
			'primary key' => array ('nomer'),

		);
			  
    return $schema;
};


/**
 * 实现 hook_install()
 * 在模块首次启用时创建表 `ankets`
 */
function anketa_install()
{
    drupal_install_schema('anketa');
}
function anketa_uninstall()
{
    drupal_uninstall_schema('anketa');
}
?>