/* Prepare the data */ DROP TABLE Student;CREATE TABLE Student ( StudentID INT NOT NULL PRIMARY KEY, Name VARCHAR(50) NOT NULL)TYPE = InnoDB;/* Insert data for testing */ INSERT INTO Student (StudentID,Name) VALUES (1,'Joe Yin');INSERT INTO Student (StudentID,Name) VALUES (2,'Cory But');INSERT INTO Student (StudentID,Name) VALUES (3,'JJ Harvests'); /* Real command */SELECT Name FROM StudentWHERE Name REGEXP '^[J].*r$';
Name (required)
email (will not be published) (required)
Website