2011年5月30日

mysql 开发指南

摘要: 1.创建索引 create index PENALTIES_AMOUNT on penalties(amount);删除: drop index PENALTIES_AMOUNT;2.创建索引create view number_sets (matchno,difference) as select matchno,abs(won-lost) from matches;删除: drop view number_sets;使用方法:select * from number_sets;3.对用户限制在某个表操作grant select ,update on players to dinnery 阅读全文

posted @ 2011-05-30 17:23 alon 阅读(186) 评论(0) 推荐(0) 编辑

2010年2月4日

pro javascript techniques(精通JAVASCRIPT)读书

摘要: 第一章。现代JS程序设计分离式DOM脚本编程使用DOM定位并操作不同的DOM元素<html><head><title> introduction to the dom </title><script>//我们必须在文档完成加载后再操作DOMwindow.onload = function() {//获取文档中的所有 <li>v... 阅读全文

posted @ 2010-02-04 10:19 alon 阅读(281) 评论(0) 推荐(0) 编辑

2010年1月26日

Rundll32使用技巧 使用Shell打开选择文件对话框以及其它

摘要: Rundll32包含了很多系统的指令,下面是我摘录的关于Rundll32可以执行的命令集合。To bring up the "Format - 3 1/2 Floppy (A:)" window: rundll32.exe shell32.dll,SHFormatDrive To bring up the Control Panel "Date/Time Properties" window: r... 阅读全文

posted @ 2010-01-26 21:18 alon 阅读(845) 评论(0) 推荐(0) 编辑

数据类型转换示例

摘要: 刚接触VC编程的朋友往往对许多数据类型的转换感到迷惑不解,本文将介绍一些常用数据类型的使用。我们先定义一些常见类型变量借以说明inti=100;longl=2001;floatf=300.2;doubled=12345.119;charusername[]="女侠程佩君";chartemp[200];char*buf;CStringstr;_variant_tv1;_bstr_tv2;一、其它数据... 阅读全文

posted @ 2010-01-26 21:17 alon 阅读(229) 评论(0) 推荐(0) 编辑

VC常用数据类型

摘要: VC常用数据类型(2006.11.26):类型 字节数 位数 范围 备注意:char 1 8 -128-127signed char 1 8 -128-127unsigned char 1 8 0-255short int 2 16 -32768-32767signed short int 2 16 -32768-32767unsigned short int 2 16 0-65535int 4... 阅读全文

posted @ 2010-01-26 21:14 alon 阅读(313) 评论(0) 推荐(0) 编辑

delphi基础

摘要: 1.集合的用法(1)IN 判断是否存在typeTCharset = set of char;vart: TCharset;begint:= ['a','b','s'];if 's' in t thenShowMessage('in');end;判断是否缺乏if not ('m' in t) then// do something(2)增加删除+ ,-Include(t,'m');ExClude(t... 阅读全文

posted @ 2010-01-26 21:12 alon 阅读(249) 评论(0) 推荐(0) 编辑

c#基础

摘要: -. 1.数据类型存储*1.堆栈:存储固定长度的数据,如int(占4字节). 值类型*2.堆:存储可变长度的数据,如字符串. 引用类型结构是值类型,类是引用类型2.多维数组string[,] Name={{"Lennon","John"},{"MAC","Paul"}};3.internal 变量只能在当前程序中被访问protected internal 变量只能在当前程序中被访问,或者在派生当前... 阅读全文

posted @ 2010-01-26 21:11 alon 阅读(190) 评论(0) 推荐(0) 编辑

vc笔记

摘要: 1.句柄(HANDLE)的东西。可以这样去理解句柄,Windows程序中产生的任何资源(要占用某一块或大或小的内存),如图标,光标,窗口,应用程序的实例(已加载到内存运行中的程序)。操作系统每产生一个这样的资源时,都要将它们放入相应的内存,并为这些内存指定一个唯一的标识号,这个标识号即该资源的句柄。2.创建光标CClientDC dc(this);CFont font;font.CreatePoi... 阅读全文

posted @ 2010-01-26 21:10 alon 阅读(188) 评论(0) 推荐(0) 编辑

2010年1月23日

big c++ 读书笔记

摘要: 第4章 基本控制流 零警告编译 int pennies = static_cast<int>(100 * (amount_due - amount_paid));输入确定#include<iostream>#include<string>#include<cmath>using namespace std;int main(){double area... 阅读全文

posted @ 2010-01-23 00:54 alon 阅读(353) 评论(0) 推荐(0) 编辑

2010年1月21日

15个mysql使用管理命令

摘要: 15个mysql使用管理命令In all the 15 mysqladmin command-line examples below, tmppassword is used as the MySQL root user password. Please change this to your MySQL root password. 1. How to change the MySQL root... 阅读全文

posted @ 2010-01-21 00:04 alon 阅读(520) 评论(0) 推荐(0) 编辑

导航