package com.example.missedcall;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.provider.CallLog;
import android.provider.CallLog.Calls;
/**
*...
分类:
其他好文 时间:
2014-12-19 10:08:36
阅读次数:
130
package com.manhua.sqlitetest;import android.app.Activity;import android.content.Context;import android.database.Cursor;import android.os.AsyncTask;im...
分类:
移动开发 时间:
2014-12-17 16:12:54
阅读次数:
269
出现名为'MM_CURSOR' 的游标已存在。一般出现这样的问题是:1:游标没有 --关闭 释放如:--关闭游标CLOSEMM_CURSOR--释放游标DEALLOCATEMM_CURSOR2:游标已存在同名情况,此时就需要在定义游标时申明一个局部的游标如:/*检索已经配置好的新村镇的所有乡级部门*...
分类:
其他好文 时间:
2014-12-17 12:37:47
阅读次数:
216
问题一:最简单的鼠标移过手变型的css要改了 cursor:pointer;/*FireFox(火狐)不支持cursor:hand*/ dw8下面自动出来的也没有hand这个属性了,标准的是pointer 问题二:FireFox(火狐)不支持滤镜 最常见的半透明不支持。 filter: Alpha(...
分类:
其他好文 时间:
2014-12-16 18:37:08
阅读次数:
338
出现log信息:05-0610:10:06.865:ERROR/AndroidRuntime(4061):Causedby:android.database.CursorIndexOutOfBoundsException:Index-1requested,withasizeof1解决问题:出现以上错误是由于没有移动游标或是没有查询到需要的数据而移动了游标强制获取某一行数据而导致的,注意查询..
分类:
其他好文 时间:
2014-12-16 06:34:33
阅读次数:
145
第一个Demo: 1 package com.example.sqlitedemo; 2 3 import android.os.Bundle; 4 import android.app.Activity; 5 import android.database.Cursor; 6 import an....
分类:
数据库 时间:
2014-12-15 17:14:38
阅读次数:
228
1.单行注释--多行注释/*...*/2.标志符号的命名规范 1)当定义变量时,建议用v_作为前缀 v_sal 2)当定义常量时,建议用c_作为前缀 c_rate 3)当定义游标时,建议用_cursor作为后缀 emp_cursor 4)当定义例外时,建议用e_作为前缀 e_erro...
分类:
数据库 时间:
2014-12-14 21:13:41
阅读次数:
309
go
declare @auid uniqueidentifier,@name varchar(Max) ---定义变量
declare auth_cur cursor for --定义游标
select ID, [FirstMenu] from [dbo].[MenuList]
open auth_cur--打开游标
fetch next from auth_cur into @a...
分类:
数据库 时间:
2014-12-14 13:18:32
阅读次数:
205
#!/usr/bin/pythonimportMySQLdbimportpycurldefmaster_work(ip,port):printip,portconn=MySQLdb.connect(host=str(ip),user=‘***‘,passwd=‘****‘,port=int(port))cur=conn.cursor(cursorclass=MySQLdb.cursors.DictCursor)cur.execute(‘showstatus;‘)result=cur.fetchall()#co..
分类:
数据库 时间:
2014-12-12 17:06:30
阅读次数:
241
#!/usr/bin/pythonimportpycurlimportosimportMySQLdbimportcStringIOimportsimplejsonimportredisdeffts_get_appname(host,user,port,db,passwd):conn=MySQLdb.connect(host=str(host),user=user,passwd=passwd,port=int(port),db=db)cur=conn.cursor(cursorclass=MySQLdb.cur..
分类:
其他好文 时间:
2014-12-12 17:05:27
阅读次数:
198