That's quite a general question!
Basically, all types that the database system itself offers, like NUMERIC, VARCHAR etc., or that the programming language of choice offers (int, string etc.) would be considered "atomic" data(base) types.
Anything that you - based on your program's or business' requirements - build from that, business objects and so forth, are entities.
Tables, constraints and so forth are database-internal objects needed to store and retrieve data, but those are general not considered "entities". The data stored in your tables, when retrieved and converted into an object, that then is an entity.
Marc
Answer from marc_s on Stack OverflowWhat is a "database entity" and what types of DBMS items are considered entities? - Stack Overflow
Is a data table an entity or a representation of an entity in database systems?
What is the difference between an entity and a class in Databases?
What's the difference between an Entity Relationship Model and Relational Data Model?
Videos
That's quite a general question!
Basically, all types that the database system itself offers, like NUMERIC, VARCHAR etc., or that the programming language of choice offers (int, string etc.) would be considered "atomic" data(base) types.
Anything that you - based on your program's or business' requirements - build from that, business objects and so forth, are entities.
Tables, constraints and so forth are database-internal objects needed to store and retrieve data, but those are general not considered "entities". The data stored in your tables, when retrieved and converted into an object, that then is an entity.
Marc
In the entity relationship world an entity is something that may exist independently and so there is often a one-to-one relationship between entities and database tables. However, this mapping is an implementation decision: For example, an ER diagram may contain three entities: Triangle, Square and Circle and these could potentially be modelled as a single table: Shape.
Also note that some database tables may represent relationships between entities.
I know an entity is its own existing concept. Now we use data tables for entities. Does this mean data tables are a representation strictly speaking for entities or are the data tables entities themselves? I see both types of answers, and I wonder if people are carelessly saying data tables and entities are the same things. Another question, can entities be represented in other ways if the data tables are not an entity but just a representation of it or is the data table only representation in database systems.