Score
Id = int, primary key, StuName Subject Result
2>r> 3
5
.> … … …
Add a score: Name StuName is Lei Wang, Subject is Java programming, Result is 92
Insert into score(StuName,Subject,Result) Values(‘ StuName ‘, ‘Java programming’,92);
2. Delete the score information of Chinese subject
Delete from score where subject = ‘Chinese’;
Change student’s StuName to 76
Update Score Set Result= 76 Where Stuname = ‘Stuname’
Select * from user where Score> 80
Select * From Score Where Result > = 80;
Read More:
- MySQL workbench insert data prompt error: 1046 (errorcode: 1046. No database select…)
- 1093 – You can’t specify target table ‘table’ for update in FROM clause
- [SQLITE_ Error] SQL error or missing database (table users already exists)
- Mysql error when deleting the table structure: Error Code: 1217. Cannot delete or update a parent row: a foreign key constraint fails
- Microsoft SQL server, additional database error: error 916 solution
- Error 1146 (42s02): table ‘database name. Table name’ doesn’t exist ‘
- SAP SQL error “SQL code: -10692“ occurred while accessing table “ZTXXXX“.
- Reporting Services Catalog Database File Existence” error during installing SQL Server 2008 R2
- JPA transaction problems executing an update / delete query
- Lua — using remove to delete table data
- Wamp install WordPress prompt can’t select database
- Insert keyframe giving keying set failed to insert any key frames (solved)
- Insert keyframe giving keying set failed to insert any key frames
- You can’t specify target table ‘car’ for update in from clause
- MYSQL ERROR 1217 (23000): Cannot delete or update a parent row: a foreign key constraint fails
- greendao insert data UNIQUE constraint failed: PURCHASE_ORDER_TABLE._id (code 1555)
- DB2 encountered the problem of sqlcode = 911 lock table when updating record update
- SQL Server calls Database Mail to send mail error: Msg 229, Level 14, State 5, Procedure sp_send_dbmail, Line 1 EXECUTE
- mysql workbench Error Code: 1046. No database selected Select the default DB to be used
- JDBC connect to Sql Server to connect to the database–The TCP/IP connection to the host localhost, port 1433 has failed