161k views
5 votes
What command represents the C (Create) in CRUD?

1 Answer

6 votes

Final answer:

The 'C' in CRUD stands for 'Create' which, in SQL databases, is represented by the 'INSERT' command to add new records or 'CREATE' to create new tables or databases. For document databases like MongoDB, use 'insertOne()' or 'insertMany()' commands.

Step-by-step explanation:

What command represents the C (Create) in CRUD?

The C in CRUD stands for Create, and it is represented by different commands or functions in various programming languages and database systems. In the context of SQL databases, the CREATE command is used to create a new table or database. However, when referring to creating a new record, the command used is INSERT. For document-based databases like MongoDB, the equivalent operation would be insertOne() or insertMany() to create new documents. It is important to know the context in which CRUD is being applied, as the specific command may vary depending on the system used.

User Andrey Portnoy
by
8.0k points