Recent Notes

Displaying keyword search results 1 - 12
Created by freyo on September 14, 2011 16:30:03    Last update: September 14, 2011 16:30:03
Select from the system table: $ android-sdk-linux_86/platform-tools/adb shell ... Other useful commands: sqlite> .databases seq name file ...
Created by James on March 27, 2009 03:20:58    Last update: May 08, 2011 12:32:31
Use show create table <tablename> : mysql> show create table my_test_table; +------... Select from information_schema.table_constraints and information_schema.key_column_usage mysql> select * from information_schema.table_cons...
Created by Dr. Xi on March 05, 2011 14:39:42    Last update: March 05, 2011 14:40:35
Select from information_schema : mysql> select cc.character_set_name -> from... Other columns available from the information_schema tables: mysql> desc tables; +-----------------+--------... Note that show create table <table_name> also works.
Created by Dr. Xi on March 05, 2011 14:31:44    Last update: March 05, 2011 14:32:21
Select from information_schema.tables : mysql> select table_collation from information_sch... Or, show create table mysql.host; CREATE TABLE `host` ( `Host` char(60) collate...
Created by Fang on April 04, 2010 04:12:14    Last update: July 21, 2010 14:52:58
The tags <c:if> The <c:if> tag may be used with or without body content: <!-- Without body content, used to export vari... In my opinion, the version without body content is pretty much useless (the <c:set> tag is a lot more meaningful for this purpose). If body content exists, it is inserted into the page if the testCondition is true . Optional attributes var and scope may be specified. If var is specified, a variable whose name is the value of var is exported to the associated scope ( pageScope if no scope is specified). The type of the exported variable is Boolean and its value is the value of the testCondition . <c:choose>, <c:when>, <c:otherwise> These tags imitate the Java control structure if...else...
Created by voodoo on July 12, 2010 18:44:06    Last update: July 12, 2010 18:44:06
Use the \d command to show information about a table: postgres=# \d patchtype Table ...
Created by voodoo on June 29, 2010 15:08:16    Last update: June 29, 2010 15:08:16
ALTER TABLE PatchInfo ADD CONSTRAINT FileNameKey_U...
Created by Dr. Xi on February 18, 2010 21:17:34    Last update: February 18, 2010 21:17:34
-- add a foreign key to abother table alter tab...
Created by Dr. Xi on February 18, 2010 21:04:13    Last update: February 18, 2010 21:04:13
-- disable foreign key alter table my_table...
Created by Dr. Xi on April 06, 2008 15:17:03    Last update: September 06, 2008 17:18:07
If you create a model like the following: from django.db import models class Person(m... Django creates the corresponding table like this: CREATE TABLE person ( "id" number(11,0) NOT... Since Oracle doesn't have IDENTITY or AUTO_INCREMENT column, how does Django create the primary key when you insert a new person? In fact, when you run python manage.py syncdb with an empty database, Django also creates a sequence and a trigger: create sequence person_sq; create or replace TR... However, if you have an existing Person table and are creating a Django model for it, the sequence and trigger won't be created when you syncdb . You have to manually create them in order for inserts to work.
Created by Dr. Xi on August 29, 2008 18:45:25    Last update: August 29, 2008 18:45:25
This is the syntax to drop a foreign key: ALTER TABLE my_table DROP CONSTRAINT fk_my_fore...
Created by Dr. Xi on August 10, 2007 21:05:26    Last update: August 10, 2007 21:05:26
This style sheet transforms the struts-config.xml into HTML for easy viewing in a browser. It uses the DHTML JavaScript tooltip from http://www.walterzorn.com/tooltip/tooltip_e.htm . <?xml version="1.0" encoding="UTF-8"?> <xsl...