\a toggle between unaligned and aligned output mode 在格式化和非格式化之间切换
postgres=# \a
Output format is unaligned.
postgres=# select oid, datname from pg_database;
oid|datname
5|postgres
1|template1
4|template0
(3 rows)postgres=# \a
Output format is aligned.
postgres=# select oid, datname from pg_database;
oid | datname
-----+-----------
5| postgres
1| template1
4| template0
(3 rows)
\C [STRING] set table title, or unset if none 设置表头
postgres=# \C "This is pg_database"
Title is ""This is pg_database"".postgres=# select oid, datname from pg_database;"This is pg_database"
oid | datname
-----+-----------
5| postgres
1| template1
4| template0
(3 rows)
\f [STRING] show or set field separator for unaligned query output 用\a切换到非格式化模式后,可设置字段分隔符
postgres=# \a
Output format is unaligned.
postgres=# select oid, datname from pg_database;
oid|datname
5|postgres
1|template1
4|template0
(3 rows)postgres=# \f "==="
Field separator is ""==="".postgres=# select oid, datname from pg_database;
oid"==="datname
5"==="postgres
1"==="template1
4"==="template0
(3 rows)
\H toggle HTML output mode (currently on) 普通格式和Html格式切换开关
postgres=# select oid, datname from pg_database;
oid | datname
-----+-----------
5| postgres
1| template1
4| template0
(3 rows)postgres=# \H
Output format is html.
postgres=# select oid, datname from pg_database;<table border="1"><tr><th align="center">oid</th><th align="center">datname</th></tr><tr valign="top"><td align="right">5</td><td align="left">postgres</td></tr><tr valign="top"><td align="right">1</td><td align="left">template1</td></tr><tr valign="top"><td align="right">4</td><td align="left">template0</td></tr></table><p>(3 rows)<br /></p>
postgres=# \pset border 5
Border style is 5.
postgres=# \H
Output format is html.
postgres=# select oid, datname from pg_database;<table border="5""height=100;width=200;"><tr valign="top"><td align="right">5</td><td align="left">postgres</td></tr><tr valign="top"><td align="right">1</td><td align="left">template1</td></tr><tr valign="top"><td align="right">4</td><td align="left">template0</td></tr></table>
\t [on|off] show only rows (currently off) 只显示结果记录
postgres=# \t
Tuples only is off.
postgres=# select oid, datname from pg_database;
oid | datname
-----+-----------
5| postgres
1| template1
4| template0
(3 rows)postgres=# \t
Tuples only is on.
postgres=# select oid, datname from pg_database;5| postgres
1| template1
4| template0
\T [STRING] set HTML
tag attributes, or unset if none 设置输出Html标签的属性
postgres=# \T "height=100;width=200;"
Table attributes are ""height=100;width=200;"".postgres=# \H
Output format is html.
postgres=# select oid, datname from pg_database;<table border="1""height=100;width=200;"><tr valign="top"><td align="right">5</td><td align="left">postgres</td></tr><tr valign="top"><td align="right">1</td><td align="left">template1</td></tr><tr valign="top"><td align="right">4</td><td align="left">template0</td></tr></table>
postgres=# select oid, datname from pg_database;
oid | datname
-----+-----------
5| postgres
1| template1
4| template0
(3 rows)postgres=# \x on
Expanded display is on.
postgres=# select oid, datname from pg_database;
-[ RECORD 1]------
oid |5
datname | postgres
-[ RECORD 2]------
oid |1
datname | template1
-[ RECORD 3]------
oid |4
datname | template0
postgres=# \x
Expanded display is off.
postgres=# \x
Expanded display is on.
postgres=#
Connection
\c[onnect] {[DBNAME|- USER|- HOST|- PORT|-] | conninfo} connect to new database (currently “postgres”) \c 数据库名 用户名
postgres=# \c template1 postgres
You are now connected to database "template1" as user "postgres".
\conninfo display information about current connection
postgres=# \conninfo
You are connected to database "postgres" as user "postgres" on host"localhost"(address "::1") at port "5432".
\encoding [ENCODING] show or set client encoding 显示或设置客户端编码方式
postgres=# \encoding
UTF8
\password [USERNAME] securely change the password for a user 修改用户密码
Operating System
\cd [DIR] change the current working directory
postgres-# \! ls
log.file result.file sql.file
postgres-# \cd /home
postgres-# \! ls
postgres
postgres-#
postgres=# \set ECHO_HIDDEN onpostgres=# \du
********* QUERY **********
SELECT r.rolname, r.rolsuper, r.rolinherit,
r.rolcreaterole, r.rolcreatedb, r.rolcanlogin,
r.rolconnlimit, r.rolvaliduntil,
ARRAY(SELECT b.rolname
FROM pg_catalog.pg_auth_members m
JOIN pg_catalog.pg_roles b ON (m.roleid = b.oid)
WHERE m.member = r.oid) as memberof
, r.rolreplication
, r.rolbypassrls
FROM pg_catalog.pg_roles r
WHERE r.rolname !~ '^pg_'
ORDER BY 1;
**************************
List of roles
Role name | Attributes | Member of
-----------+------------------------------------------------------------+-----------
postgres | Superuser, Create role, Create DB, Replication, Bypass RLS |{}postgres=# \set ECHO_HIDDEN offpostgres=# \du
List of roles
Role name | Attributes | Member of
-----------+------------------------------------------------------------+-----------
postgres | Superuser, Create role, Create DB, Replication, Bypass RLS |{}
postgres=# \set autocommit offpostgres=# \set autocommit on
最近mysql数据库经常死掉,用命令net stop mysql命令也无法停掉,关闭Tomcat的时候,出现Waiting for N instance(s) to be deallocated 信息。查了下,大概就是程序没有对数据库连接释放,导致Connection泄露了。因为用的是开元集成的平台,内部程序也不可能一下子给改掉的,就验证一下咯。启动Tomcat,用户登录系统,用netstat -
var a=document.getElementsByClassName('textinput');
var b=[];
for(var m=0;m<a.length;m++){
if(a[m].getAttribute('placeholder')!=null)
b.push(a[m])
}
var l
错误信息:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cartService': Scope 'session' is not active for the current thread; consider defining a scoped
这个开源软件包是国内的一位高手自行研制开发的,正如他所说的一样,我觉得它可以使一个工作流引擎上一个台阶。。。。。。欢迎大家使用,并提出意见和建议。。。
----------转帖---------------------------------------------------
IK Expression是一个开源的(OpenSource),可扩展的(Extensible),基于java语言
1.在thingking in java 的第四版第六章中明确的说了,子类对象中封装了父类对象,
2."When you create an object of the derived class, it contains within it a subobject of the base class. This subobject is the sam
http://www.sap.com/corporate-en/press.epx?PressID=14787
有机会研究下EIM家族的两个新产品~~~~
New features of the 4.0 releases of BI and EIM solutions include:
Real-time in-memory computing –
结构
继承关系
public final class Manifest extends Objectjava.lang.Objectandroid.Manifest
内部类
class Manifest.permission权限
class Manifest.permission_group权限组
构造函数
public Manifest () 详细 androi
关键字:Oracle实现类split函数的方
项目里需要保存结构数据,批量传到后他进行保存,为了减小数据量,子集拼装的格式,使用存储过程进行保存。保存的过程中需要对数据解析。但是oracle没有Java中split类似的函数。从网上找了一个,也补全了一下。
CREATE OR REPLACE TYPE t_split_100 IS TABLE OF VARCHAR2(100);
cr