Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Linq Óësql·½Ê½ Ìí¼ÓÊý¾ÝЧÂʱȽÏ

Ëù²âÊÔ»·¾³Îª£ºMs sqlserver 2008£¬visual studio 2008
²âÊÔÊý¾ÝΪ10ÍòÌõ
 Linq·½Ê½ ´úÂ룺
/// <summary>
/// Linq ·½Ê½
/// </summary>
public static void Linq_insert()
{
DataClassesDataContext dataContext = new DataClassesDataContext();
for (int i = 0; i < 100000; i++)
{
Bulletin bulletin = new Bulletin()
{
ID = 10000 + i,
content = "18:00Ö±²¥ÑǹÚÊ×¶ûVSɽ¶«£¬¾´ÇëÆÚ´ý£¡£¡£¡",
date = DateTime.Now,
title = "18:00Ö±²¥ÑǹÚÊ×¶ûVSɽ¶«"
};
dataContext.Bulletin.InsertOnSubmit(bulletin);
}
dataContext.SubmitChanges();
}
SQL ·½Ê½  ´úÂ룺
public static void SQL_insert()
{
SqlConnectionStringBuilder strB = new SqlConnectionStringBuilder();
strB.DataSource = ".";
strB.InitialCatalog = "MyBulltin";
strB.UserID = "sa";
strB.Password = "123";
SqlConnection conn = new SqlConnection(strB.ToString());
SqlCommand comm = null;
string sql = "insert into Bulletin(id,content,date,title) values(@id,@content,@date,@title)";
comm = new SqlCommand(sql, conn);
conn.Open();
for (int i = 0; i < 100000; i++)
{
SqlParameter[] param=new SqlParameter[]{
new SqlParameter("@id",i+10000),
new SqlParameter("@content","18:00Ö±²¥ÑǹÚÊ×¶ûVSɽ¶«£¬¾´ÇëÆÚ´ý£¡£¡£¡"),
new SqlParameter("@date",DateTime.Now),
new SqlParameter("@title","18:00Ö±²¥ÑǹÚÊ×¶ûVSɽ¶«")
};
comm.CommandText = sql;
comm.Parameters.AddRange(param);
comm.ExecuteNonQuery();
comm.CommandText = string.Empty;
comm.Parameters.Clear


Ïà¹ØÎĵµ£º

sql server ¸ü¸Ä±íµÄËùÊôÓû§µÄÁ½¸ö·½·¨

sql server ¸ü¸Ä±íµÄËùÊôÓû§µÄÁ½¸ö·½·¨
--¸ü¸Äij¸ö±í
exec sp_changeobjectowner 'tablename','dbo'
--´æ´¢¸ü¸ÄÈ«²¿±í
CREATE PROCEDURE dbo.User_ChangeObjectOwnerBatch
@OldOwner as NVARCHAR(128),
@NewOwner as NVARCHAR(128)
AS
DECLARE @Name as NVARCHAR(128)
DECLARE @Owner as NVARCHAR(128)
D ......

ORA 07445 Óë PL/SQL Developer °¸ÀýÒ»Ôò

ORA-07445 Óë PL/SQL Developer °¸ÀýÒ»Ôò
×÷Õߣºeygle |English Version ¡¾×ªÔØÊ±ÇëÒÔ³¬Á´½ÓÐÎʽ±êÃ÷ÎÄÕ³ö´¦ºÍ×÷ÕßÐÅÏ¢¼°±¾ÉùÃ÷¡¿
Á´½Ó£ºhttp://www.eygle.com/archives/2009/02/ora_07445_plsql_developer.html
--------------------------------------------------------------------------------
ǰ¼¸Ì죬ÓÖÓÐÒ»¸ö ......

SQL*LoaderʹÓÃÖ¸ÄÏ

Oracle µÄSQL*LOADER¿ÉÒÔ½«ÍⲿÊý¾Ý¼ÓÔØµ½Êý¾Ý¿â±íÖС£ÏÂÃæÊÇSQL*LOADERµÄ»ù±¾Ìص㣺
1£©ÄÜ×°È벻ͬÊý¾ÝÀàÐÍÎļþ¼°¶à¸öÊý¾ÝÎļþµÄÊý¾Ý
2£©¿É×°Èë¹Ì¶¨¸ñʽ£¬×ÔÓɶ¨½çÒÔ¼°¿É¶È³¤¸ñʽµÄÊý¾Ý
3£©¿ÉÒÔ×°Èë¶þ½øÖÆ£¬Ñ¹ËõÊ®½øÖÆÊý¾Ý
4£©Ò»´Î¿É¶Ô¶à¸ö±í×°ÈëÊý¾Ý
5£©Á¬½Ó¶à¸öÎïÀí¼Ç¼װµ½Ò»¸ö¼Ç¼ÖÐ
6£©¶ÔÒ»µ¥¼Ç¼·Ö½âÔÙ×°Èëµ½± ......

¸öÈË×ܽáµÄ¼¸Ìõ±È½ÏÓÐÒâ˼µÄsqlÓï¾ä


 
--------------------------------------------------------------------
-- ×÷ÕߣºÕŰ®¹ú
-- ÈÕÆÚ£º2010-01-23 15:00:17
-- ÃèÊö: һЩ±È½ÏÓÐÒâ˼µÄSQLÓï¾ä
-- Version:
--    Microsoft SQL Server 2005 - 9.00.3042.00 (Intel X86)
--    Feb  9 2007 22:47:0 ......

´«ÖDz¥¿Íjavaѧϰ sql³£Óú¯Êý

ÎÒ½ñÌìѧϰÁËsqlÓï¾äµÄ³£Óú¯Êý£¬ÊÇ·ëÍþÀÏʦ½²µÄ£¬ÎÒ×öÁ˼òµ¥µÄ±Ê¼Ç£º
 
Ò»£¬SQLº¯Êý£º
1. ´óСдת»»º¯Êý
   lower ת³ÉСд  
   upper ´óд
   initcap  ½«×Ö·û´®µÄ(ÿ¸öµ¥´ÊµÄ)µÚÒ»¸ö×Öĸ±äΪ´óд,ºóÃæµÄСд
 select initcap('huangHY') from dual
&n ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ