python - <type 'exceptions.SyntaxError'> invalid table/column name "size" is a "ALL" reserved SQL/NOSQL keyword -
db.define_table('bookspace', field('locaton','string'), field('size','string'), field('availablefrom', 'string'), field('availableto', 'string'), field('rooftype', 'string'), field('sitetype', 'string'), field('name', 'string'), field('email', 'string'), field('mobile', 'string'), field('industry_food', 'string'), field('industry_ecommerce', 'string'), field('industry_furniture', 'string'), field('industry_exim', 'string'), field('industry_auto', 'string'), field('industry_chemical', 'string'), field('industry_logistics', 'string'), field('industry_construction', 'string'), field('industry_agriculture', 'string'), field('industry_telecom', 'string'), field('industry_others', 'string'), field('parameter_rent','string'), field('parameter_numgates', 'string'), field('parameter_numdocks', 'string'), field('parameter_centralheight', 'string'), field('parameter_sidewallheight', 'string'), field('parameter_parkingarea', 'string'), field('parameter_firenoc', 'string'), field('parameter_foodlicense', 'string'), field('service_transportation','string'), field('service_security', 'string'), field('service_cctv', 'string'), field('service_insurance', 'string'), field('service_racking', 'string'), field('service_pallets', 'string'), field('service_forklift', 'string'), field('service_powerbackup', 'string'), field('service_loading', 'string'), format='%(name)s')
by typing above code getting error( invalid table/column name "size" "all" reserved sql/nosql keyword)help me rid out of this. should used in case. thks.
size word reserved db. is, have special meaning db , cannot redefined. reason, cannot use them name database objects such columns, tables, or indexes. try using different name instead :)
Comments
Post a Comment