Public classText12 { Public Static voidMain (string[] args) {MyThread Mt=NewMyThread ();//Error: You cannot access a closed instance of type Text12. You must use a closed instance of the Text12 type to qualify the assignment (for example, X. New A () x is an instance of Text12). Thread T1=NewThread (MT); Thread T2=NewThread (MT); Thread T3=NewThread (MT); Thread T4=NewThread (MT); Thread T5=NewThread (MT); T1.setname ("AAA"); T2.setname ("BBB"); T3.setname ("CCC"); T4.setname ("DDD"); T5.setname ("Eee"); T1.start (); T2.start (); T3.start (); T4.start (); T5.start (); }}
class MyThread implements runnable{// to write on the outside of the Text12 class, because it is two different classes, written in one,public station Station =New station (); @Override publicvoid run () {station . Buy (Thread.CurrentThread (). GetName (),1); } }
2.
INSERT into P_emp (empno,ename,job,mgr,hiredate) VALUES (7000,'222', ' www ',7698, sysdate); COMMIT;
A total of 8 columns, not necessarily add 8 columns, you can simply add the primary key column
Knowledge Points:
For date-based data, doing *,/is illegal
The value of a mathematical expression that contains null values is NULL
Alias using double quotation marks
by | | Connection string
Dates and characters can only appear in single quotes
Distinct removing duplicates
where To_char (HIRE_DATE,YYYY-MM-DD) The specified format of the date
Insert into table name (column) values (value)
Finally add commit commit
Update table name set change content
Delete Deletes
The name of the employee contains a
Like '%a% ' like '%a ': The last one in the name is a.
The third name in the like ' __%a ' is a.
ID in (All-in-a--): Employees with the ID of
Threads and databases