Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average


Need assistance with "ORA-00904: invalid identifier" filter_list
Author
Message
Need assistance with "ORA-00904: invalid identifier" #1
Hello all,

I'm working with MySQL DML.
I'm trying to create this table with a primary key and has worked with the previous 2 tables.
Here is my first attempt with date INT
https://gyazo.com/6e60174fad0ddc2b96f666fb2a10f0ad

Here is my second attempt with date VARCHAR2(*)
https://gyazo.com/4de7341cce898739404aca071184f46c

You can see, "Date" doesn't wanna work for me. @Mothered

Thanks,
- Mimi

Reply

RE: Need assistance with "ORA-00904: invalid identifier" #2
I assume you wish to store the date value In the form of YYYY-MM-DD, so replace the INT & VARCHAR datatypes with the DATE datatype. If you're using a FOREIGN KEY In the child table, make sure that also has the same datatype (and column name) as the PRIMARY KEY In the parent table.

If It's not relative to the above, create the table by adding the PRIMARY KEY like this (select whatever you wish as the PRIMARY KEY):
Spoiler:
[Image: ypJshuO.png]

You can add your values to each column thereafter.
[Image: AD83g1A.png]

Reply







Users browsing this thread: 1 Guest(s)