Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OO program and SQL database

Tags:

oop

sql

When programming an OO program using a SQL database back-end, do objects' attributes correspond with the rows in the tables? Or more than that? I don't quite understand how objects' attributes relate to data in tables. Thanks for your help.

like image 939
ChrisC Avatar asked Feb 27 '26 16:02

ChrisC


1 Answers

It really depends which orm you are using, however, in general the idea is:

class = > table
instance => row
attribute => column
like image 101
ennuikiller Avatar answered Mar 01 '26 10:03

ennuikiller