SQL Question
SQL Question
Write a function to insert a record in table using python and MySQL interface.
Output:
Enter roll no 98
Enter name Rahul
Enter per 78
Record saved
>>>
Queries Set 1 (Database Fetching records)
[1] Consider the following MOVIE table and write the SQL queries based on it.
Answers:
Output:
2. Select distinct from a movie;
M1 2021/12/20 1 2 107 93
M4 2021/12/23 2 4 65 67
M5 2021/12/24 1 4 52 88
M6 2021/12/25 2 3 97 68
Answers:
desc team;
Inserting data:
mqsql> insert into team
-> values(1,'Tehlka');