0

i have a DB which has a table named LIKE.

uppon trying to execute any query on the table, it gives me an error and i know it's because of the name which is trying to use the query keyword LIKE.

Now, i have "bypassed" this issue in MySQL by just selecting the table as

SELECT tk_oseba_id, COUNT(tk_tip_like_id) AS St_Like_haha
    FROM student999.`like`;

Now this same line wont work at `l...is there any special way to to this in oracle or how can i manipulate with the table by not using the LIKE keyword.

1
  • 2
    oracle wrap in quotes.from student9999."like" and it's case sensitive when you use the quotes. Commented Apr 19, 2017 at 18:32

1 Answer 1

1

Oracles's counter part to mysql's back tick is quote for defining tablenames/columns.

To use a key word as a table name though I recommend against it...

wrap the table name in quotes. From student9999."like"

AND... it forces case sensitivity when you use the quotes!

Sign up to request clarification or add additional context in comments.

3 Comments

its a university db, so can help it if they make the names up.. i am also against it :) thanks
Why is that university teachers are so determined to teach their students bad practices?
Maybe so if the students encounter this situation in the real world the student know how to handle it. Can't tell you how many times I ran into a table called order when supporting ERPs for small business; or even on SO.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.