Store 1 pen exam

Source: Internet
Author: User

Before the test, refer to previous years' questions.

You can search for this keyword on the Internet.

1. What is the difference between preparedstatment and statement in the steps for connecting Java to the database?


2. Differences between session and COOKIE: How to Use session and cookie to access shared user information

A: For details about the differences between cookies and sessions

1. Cookie data is stored in the client's browser, and session data is stored on the server.

2. Cookies are not very secure. Others can analyze the Cookies stored locally and perform cookie spoofing. For security reasons, session should be used.

3. The session will be stored on the server for a certain period of time. When the number of access requests increases, it will occupy the performance of your server. To reduce the performance of your server, you should use cookies.

4. data stored in a single cookie cannot exceed 4 kb. Many browsers limit that a site can store up to 20 cookies.


3. What is localthred and what is its function. (Syntronized)
4. Database Design: User, role, permision, requiring one user to have multiple role and one role to have multiple Permissions

Find all permissions of Michael Jacob.

Find all users with more than 3 Permissions

A: (I do not know the database permission. I will keep it for reference first)

Answer 1: Select * From dba_tab_privs where grantee = 'zhang san ';

Answer 2:

Select P. priv from user_roles U, role_privs P where u. Role = P. Role and U. Username = 'hangs ';
Select U. username, count (P. priv) from user_roles U, role_privs P where u. Role = P. Role group by U. Username having count (P. priv)> 3;

Store 1 pen exam

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.