Threads and databases

Source: Internet
Author: User

 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.