Jun 21, 2021 · Example-3 : LPAD Function can also be used to add a string for column data. To demonstrate create a table named Student. CREATE TABLE Student ( Student_id INT AUTO_INCREMENT, Student_name VARCHAR(100) NOT NULL, Student_Class VARCHAR(20) NOT NULL, PRIMARY KEY(Student_id ) ); Now inserting some data to the Student table :