Archive for September, 2007


September
28th
2007

Test Your Knowledge of PHP

Technology No Comments

评分: 很差劲不怎样还可以还不错太棒了
Loading ... Loading ...

by Emmett Dulaney
From: http://www.unixreview.com/documents/s=10130/ur0705d/

Increasingly, PHP seems to be the tool/language that is used to make Web sites dynamic. While it is far from the only open source scripting language available, PHP’s abilities and features are quickly making it not only a must-have in the Web world but also a topic on many certification exams. Following are fifty questions on PHP at the knowledge level found on beginning/intermediate certification exams. Good luck (answers are at the end of the article)!


September
26th
2007

Create auto increasement column in Oracle

Technology No Comments

评分: 很差劲不怎样还可以还不错太棒了
Loading ... Loading ...
First let’s create a simple table to play with.
  1. SQL> CREATE TABLE test (id NUMBER PRIMARY KEY, name VARCHAR2(30));

Table created.

Now we’ll assume we want ID to be an auto increment field.
First we need a sequence to grab values from.

  1. SQL> CREATE SEQUENCE test_sequence
  2. START WITH 1
  3. INCREMENT BY 1;

Sequence created.