No. | Title |
---|---|
1 | Explanation |
2 | Code Example |
3 | Advantages and Disadvantages |
4 | Conclusion |
CREATE TABLE products (
id INT PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(100),
price DECIMAL(10, 2),
description TEXT
);
INSERT INTO products (name, price, description)
VALUES ('iPhone 12', 999.99, 'The latest iPhone model.');
SELECT * FROM products;
db.products.insertOne({
name: 'iPhone 12',
price: 999.99,
description: 'The latest iPhone model.'
});
db.products.find();