惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

H
Help Net Security
博客园 - Franky
GbyAI
GbyAI
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
爱范儿
爱范儿
IT之家
IT之家
酷 壳 – CoolShell
酷 壳 – CoolShell
aimingoo的专栏
aimingoo的专栏
博客园_首页
MongoDB | Blog
MongoDB | Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Recent Announcements
Recent Announcements
Scott Helme
Scott Helme
有赞技术团队
有赞技术团队
M
MIT News - Artificial intelligence
C
CERT Recently Published Vulnerability Notes
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Jina AI
Jina AI
F
Fortinet All Blogs
N
Netflix TechBlog - Medium
L
LangChain Blog
L
LINUX DO - 最新话题
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
H
Hacker News: Front Page
MyScale Blog
MyScale Blog
P
Palo Alto Networks Blog
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
AI
AI
T
Troy Hunt's Blog
Microsoft Azure Blog
Microsoft Azure Blog
阮一峰的网络日志
阮一峰的网络日志
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Vercel News
Vercel News
Microsoft Security Blog
Microsoft Security Blog
罗磊的独立博客
S
Secure Thoughts
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
人人都是产品经理
人人都是产品经理
Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
Apple Machine Learning Research
Apple Machine Learning Research
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
S
Security @ Cisco Blogs
Cloudbric
Cloudbric
E
Exploit-DB.com RSS Feed
Attack and Defense Labs
Attack and Defense Labs

博客园 - aaron.net

个人门户系统制作完成,欢迎测试~~ C#和VB 在动态添加用户控件时, 不一样啊。。。 - aaron.net 哈哈哈哈 微软也出错。。。。。。 用用户控件模仿datalist mediaplayer object 代码 - aaron.net AJAX 学习 ,,自己做了个计算器 ExecuteScalar 用SQL统计记录数 - aaron.net - 博客园 用SQL统计记录数 - aaron.net - 博客园 在网页中传递汉字的方法 - aaron.net - 博客园 class Property Get、Property Let 使用说明 制作网页时的23个经典代码 从魔兽中的英雄设计机制来窥探面向对象的思想 满屏显示。。。。常用HTML代码 datalist,repeater,datagrid嵌套问题,,解决代码,,总结 Visual Studio 2005 Express Beta Products(Full Package) Download 控件有时需要声明,有时不需要声明的原因! web控件介绍(asp.net快速入门) ASP.NET设计七大绝招 超链接 css
存储过程
aaron.net · 2005-04-19 · via 博客园 - aaron.net

strSQL = "update table set title=@title,content=@content where id="+id+""
myConn = New OleDbConnection(strConn)
myCommand = New OleDbCommand(strSQL, myConn)
myCommand.Parameters.Add("@title",new_title.text)
myCommand.Parameters.Add("@content",content.text)
 
strSQL = "insert into table (title,content) values (@title, @content)"
myCommand = New OleDbCommand(strSQL, myConn)
myCommand.Parameters.Add("@title",new_title.text)
myCommand.Parameters.Add("@content",content.text)

这样写可以,,,,

有一个奇怪的问题,,,,当
myCommand.Parameters.Add("@title",new_title.text)
myCommand.Parameters.Add("@content",content.text)
的顺序是
myCommand.Parameters.Add("@content",content.text)
myCommand.Parameters.Add("@title",new_title.text)
时,,,那么添加后的记录tilte 和 content 就换位了,难道@title不是类似ID的作用? 不理解~~~

补充(这个没试)
string strSql = "insert into table1 (col1,col2) values (@col1,@col2)";
SqlParameter [] Params = new SqlParameter[2];
Params[1] = new SqlParameter();
Params[1].ParameterName = "@col1";
Params[1].value = "aaron's blog";