The string data type is used to store text.
Example – Python
# Example of a string name = "Anna Puig" print(name)
Example – SQL
-- Example of a field with string-type data CREATE TABLE Customers ( Customer_ID INT PRIMARY KEY, Name VARCHAR(50) -- text field );
INSERT INTO Customers (Customer_ID, Name)
VALUES (1, ‘Anna Puig’);