Wednesday, January 30, 2019

A shortcut to check if a table has a column

If you want to check if the table PRODUCT has an ENGINEER field, you can execute the SQL below.

select ENGINEER from PRODUCT where 1=0;

If the column does not exist, it will give such an error message

ERROR at line 1:
ORA-00904: "ENGINEER": invalid identifier

else it will put out

no rows selected

  -----------------------------------------------------------------------------------------------------------------
Watch the blessing and loving online channel: SupremeMasterTV live


 

If you have ever asked yourself these questions, this is the book for you. What is the meaning of life? Why do people suffer? What is in control of my life? Why is life the way it is? How can I stop suffering and be happy? How can I have a successful life? How can I have a life I like to have? How can I be the person I like to be? How can I be wiser and smarter? How can I have good and harmonious relations with others? Why do people meditate to achieve enlightenment? What is the true meaning of spiritual practice? Why all beings are one? Read the book for free here.

No comments:

Post a Comment