Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Linux, Apache, MySQL, PHP
  4. query not executing

query not executing

Scheduled Pinned Locked Moved Linux, Apache, MySQL, PHP
databasemysqlhelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nitish_07
    wrote on last edited by
    #1

    Can't create table '.\userdb\od.frm' (errno: 150). Getting this error while creating following table in mysql... create table od(no. int,foreign key(no.) references emp(empno));

    B D 2 Replies Last reply
    0
    • N nitish_07

      Can't create table '.\userdb\od.frm' (errno: 150). Getting this error while creating following table in mysql... create table od(no. int,foreign key(no.) references emp(empno));

      B Offline
      B Offline
      Bernhard Hiller
      wrote on last edited by
      #2

      "no." is a strange column name - I never use dots or commas in a column name. Try "no" or "number" instead. By the way, does your MySQL user have the right to create tables?

      1 Reply Last reply
      0
      • N nitish_07

        Can't create table '.\userdb\od.frm' (errno: 150). Getting this error while creating following table in mysql... create table od(no. int,foreign key(no.) references emp(empno));

        D Offline
        D Offline
        Diana Weiss
        wrote on last edited by
        #3

        This is a foreign key error caused by the use of "." in your column identifyers. If you use capital letter format, for example: "ItemNumber" or underscores ("item_number") instead and you should be able to execute. Good luck :)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups