都是基本示例,更多参考官方文档:
1. Transact-SQL 函数
2. 数据库密钥
3. 证书
4. 非对称密钥
5. 对称密钥
-- drop table EnryptTest
create table EnryptTest
(
id int not null primary key,
EnryptData nvarchar(20),
)
insert int...
分类:
数据库 时间:
2015-04-04 12:18:12
阅读次数:
307
题目:
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.
思路:和上面的思想一样,只不过注意找到链表的中间节点的方法
void Inorder(BinTree* root)
{
if(root == NULL)
...
分类:
其他好文 时间:
2015-04-04 12:17:29
阅读次数:
136
mysql> create table stu(Id int(9) not null auto_increment, Name varchar(100) not null default '',Time datetime default null,primary key (Id,Time)) par...
分类:
数据库 时间:
2015-04-04 12:07:52
阅读次数:
136
一、我的代码如下:就是我textView设置值if (list != null) {
for (Student stu : list) {
//如果一下子赋值的话是不正确的
tv_name.setText(stu.getName());
tv_sex.setText(stu.getSex());
tv_age.setText(s...
分类:
移动开发 时间:
2015-04-04 10:46:22
阅读次数:
194
/**
* Definition for binary tree with next pointer.
* struct TreeLinkNode {
* int val;
* TreeLinkNode *left, *right, *next;
* TreeLinkNode(int x) : val(x), left(NULL), right(NULL), next(NULL) {...
分类:
其他好文 时间:
2015-04-04 09:17:58
阅读次数:
124
--1.将字符串转换为列显示 if object_id('tb') is not null drop table tb go create table tb([编号] varchar(3),[产品] varchar(2),[数量] int,[单价] int,[金额] int,[序列号] varc.....
分类:
其他好文 时间:
2015-04-04 09:04:01
阅读次数:
133
public int threeSumClosest(int[] num, int target) { //int d = 0; if(num==null || num.length0) low++; if(M...
分类:
其他好文 时间:
2015-04-04 09:03:29
阅读次数:
115
publicbooleanisConnectingToInternet(){ConnectivityManagerconnectivity=(ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);if(connectivity!=null){NetworkInfo[]info=connectivity.getAllNetworkInfo();if(info!=null)for(inti=0;i<info.le..
分类:
其他好文 时间:
2015-04-04 01:24:06
阅读次数:
139
IntentFilterifilter=newIntentFilter(Intent.ACTION_BATTERY_CHANGED);IntentbatteryStatus=context.registerReceiver(null,ifilter);intstatus=batteryStatus.getIntExtra(BatteryManager.EXTRA_STATUS,-1);booleanisCharging=status==BatteryManager.BATTERY_STATUS_CHARGIN..
分类:
其他好文 时间:
2015-04-04 01:23:23
阅读次数:
226
http://www.cnblogs.com/losesea/archive/2012/11/16/2772590.html首先说一下什么是指针,只要明白了指针的含义,你就明白null的含义了。假设 有语句 int a=10;那么编译器就在内存中开辟1个整型单元存放变量a,我们假设这个整型单元在内存...
分类:
其他好文 时间:
2015-04-03 23:55:23
阅读次数:
231