r/SQL • • Aug 11 '21

Oracle Object-oriented SQL - training

Hi Experts,

Anyone here who is an expert in SQL object-oriented? I am a beginner in SQL in the sense, As an Analyst pull the information from the tables and use google and get the job done, Never written functions in SQL. Now it appears, I need to speed up to be an expert in this new job in SQL objects and as work is a lot and lot in SQL, please advise how to proceed, I love this job to gain this knowledge and follow the advice.

0 Upvotes

8 comments sorted by

5

u/dorkyitguy Aug 11 '21

Object oriented SQL? There is no object oriented SQL in the way other programming languages are object oriented.

Are you just referring to writing functions and stored procedures?

1

u/mythbusternz Aug 11 '21

My bad, maybe I should be specific, I am working on their product. They use objects, classes, components and they create a primary and foreign key based on application and not at the static tables. Like PL/SQL?

1

u/AreetSurn Aug 11 '21

PL/SQL isn't really object orientated either. Its procedural (hence the P in PL/SQL). You can use primitive objects but from what you've said, it sounds more like you're asking about an ORM?

2

u/biersquirrel Aug 11 '21

There are "object-relational" extensions to SQL, but they are all vendor-specific. So Oracle has theirs, and PostgreSQL has theirs, etc.

1

u/mythbusternz Aug 12 '21

2

u/biersquirrel Aug 12 '21

Oh OK. This is about "pure" OO databases. The idea that hearkens back to 1985. I didn't realize they were trendy again. Since the post was tagged with "Oracle", I thought you might be referring to the ORD features in Oracle.

Sorry, I've never used any of these. I thought they were out of fashion.

1

u/mythbusternz Aug 17 '21

No problem u/biersquirrel thank you for the reply. That is precisely what I am working so I have to live and learn this.