易截截图软件、单文件、免安装、纯绿色、仅160KB

Access 中自动编号的解决思路

如何在 Access 中插入一条新的记录时,预先知道他的自动编号ID呢?
这个问题困扰了我很久
后来我想了一个很笨办法
就是先插入一条 随意的数据 当然里面有有一个你实现预定好的标识
比如
insert into cmd (classID,cmdType,cmd) values('temp','temp','temp')
然后找到它 读取它的ID
select * from cmd where classID='temp'
再更新它
update  cmd set classID=*,cmdType=*,cmd='*
这样这个ID就出来啦....
好郁闷啊 觉得这个办法太蠢了
有没有高人有比较好的方法 还望指教!!


相关文档:

关于update语句在sqlserver和Access中的对比

sqlserver:update Table_A set Table_A.col1 = (select Table_B.col1 from Table_B where Table_A.col2 = Table_B.col2)
Access: UPDATE Table_ A, Table_B SET Table_ A.字段2 = Table_ B.字段2
WHERE Table_ A.编号=Table_ A.编号;
自己记下,提醒自己 ......

利用 DataGridView 绘制图片列表(从Access读取图片)

using System;
using System.IO;
using System.Runtime.InteropServices;
using System.Threading;
using System.Windows.Forms;
using Microsoft.Win32;
using Access = Microsoft.Office.Interop.Access;
namespace ImageAccess
{
    static class Program
    {
   ......

Android: Requesting root access in your app

转帖:http://www.stealthcopter.com/blog/2010/01/android-requesting-root-access-in-your-app/
This snippet shows how root access can be requested inside an application in order to write a file into a place we do not have permission to access usually. Requesting root access will only work if your phon ......

asp access utf 中文 乱码怎么办


asp 中文乱码,asp access 乱码,asp 刷新后乱码,asp utf 8乱码,ajax 乱码 asp,asp 汉字乱码,asp乱码怎么办
用utf-8编码用在新的网站上,不想问题还真多,所以找了些文章,帖子,看了看,等下有用的就贴下面了。
今天,我开始把 CODEPAGE="936" 改成 CODEPAGE="65001"
把charset=gb2312改成 charset=utf-8
可是还是乱码 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号