Oracle basis

2016-03-01

Oracle数据类型

NUMBER

NUMBER表示数字类型,经常被定义成NUMBER(P,S)形式,其中:P表示数字的总位数;S表示小数点后面的位数。

如:Sal NUMBER(6,2):表示Sal列中的数据,整数位最大为4位,小数位最大位数是2位,也就是最大取值:9999.99。P不写为*号的时候代表默认38。

Read More »


Servlet Jsp note

2016-02-28

什么是Servlet

sun(oracle)公司制订的一种用来扩展web服务器功能的组件规范。使用Myeclipse创建一个web project,编写一个简单的servlet:src→com.postar.servlet(package)→HiServlet:

1
2
3
4
5
6
7
8
9
10
public class HiServlet extends HttpServlet{
@Override
protected void service(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
res.setContentType("text/html");
PrintWriter pw = res.getWriter();
pw.write("<h1 style='color:#6db33f'>hello world</h1>");
pw.close();
}
}

Read More »

Java OOP2

2016-02-27    Encrypted
The article has been encrypted, please enter your password to view.
Read More »

Java OOP1

2016-02-26    Encrypted
The article has been encrypted, please enter your password to view.
Read More »

1…4445
Hosted  by  Coding Pages
MrBird
MrBird

A simple blog, code repository, just keep blogging

14 Archives 2 Labels
  • 🏠 Home
  • 📦 Archives
  • 🔖 Labels
  • 👬 Friends
  • 🔍 Search
  •   UV    PV 
    0