数据库表结构《1》新增数据,并且按照"name" 
字段查询,如果重复返回“error”=-100 ,如果成功返回ID,如果失败ID=0USE [数据库]GOSET ANSI_NULLS ONGOSET 
QUOTED_IDENTIFIER ONGOALTER procedure [dbo].[存储过程...
                            
                            
                                分类:
数据库   时间:
2014-05-26 15:43:33   
                                阅读次数:
279
                             
                    
                        
                            
                            
                                1 s = s.replace("\n\r", "");2 s = s.replace("\r\n", 
"");//这才是正确的!3 s= s.replace("\t", "");4 s =s.replace(" ", ""); ///这个按需要看自己是否要加, 
我的不需要 也就没...
                            
                            
                                分类:
其他好文   时间:
2014-05-26 10:52:10   
                                阅读次数:
237
                             
                    
                        
                            
                            
                                //一般处理,无参数示例public JsonResult Test(){ Something... 
return Json{new{Success=true,Msg="Error!",...}}; //return 
Json(new{Success=fals,Msg="ok",...},Js...
                            
                            
                                分类:
Web程序   时间:
2014-05-26 08:44:39   
                                阅读次数:
326
                             
                    
                        
                            
                            
                                在用c#生成应用程序的时候,读写dbf时,open方法出错ERROR [IM002] 
[Microsoft][ODBC 驱动程序管理器] 
未发现数据源名称并且未指定默认驱动程序以前这个程序是用着好好的,本次升级修改后测试发现这个问题,追根求源,原来本人是32位操作系统,现在装了win7 
64位的操....
                            
                            
                                分类:
数据库   时间:
2014-05-26 08:21:50   
                                阅读次数:
794
                             
                    
                        
                            
                            
                                报错:Access restriction: The method 
decodeBuffer(String) from the type CharacterDecoder is not accessible due to 
restriction on required libraryAccess r...
                            
                            
                                分类:
数据库   时间:
2014-05-26 07:30:24   
                                阅读次数:
279
                             
                    
                        
                            
                            
                                在64位 Windows 7中水晶报表的错误:Crystal Report Error: Either 
the Crystal Reports registy key permission are insufficient or the Crystal 
Reports runtime is not ...
                            
                            
                                分类:
其他好文   时间:
2014-05-26 06:38:07   
                                阅读次数:
219
                             
                    
                        
                            
                            
                                #define stack_init_size 100
#define stackincrement  10
typedef int ElemType;
typedef int status;
const status error=0;
const status ok=1;
const status overflow=-2;
const int MAXSIZE = 100;
typedef st...
                            
                            
                                分类:
其他好文   时间:
2014-05-26 06:17:29   
                                阅读次数:
243
                             
                    
                        
                            
                            
                                质因数分解
/* 求质因数 */
#include
#include
int main()
{
	int n,a=2;
	printf("please input n:");
	scanf("%d",&n);
	if(n<=1)
	{
		printf("input error!\n");
		return -1;
	}
	while(a*a < n)
	{
		while(n%a==0)	
	...
                            
                            
                                分类:
其他好文   时间:
2014-05-26 05:50:40   
                                阅读次数:
279
                             
                    
                        
                            
                            
                                1.//下面写一下关于AFNetworking2.0的GET数据请求问题,刚开始的时候没有写下面标红的代码,所以导致有一个问题,错误显示如下:
Error: Error Domain=AFNetworkingErrorDomain Code=-1016 "Request failed: unacceptable content-type: text/html" UserInfo=0x913a...
                            
                            
                                分类:
Web程序   时间:
2014-05-24 23:45:53   
                                阅读次数:
365
                             
                    
                        
                            
                            
                                作为新入职的菜鸟,过去的这半个月忙的是焦头烂额的,碰到了许多问题,但都没时间好好记下来。趁着今天这点时间,记录一下有关repo使用过程中碰到的一些问题及解决办法吧!
一、repo sync时出现 error: .repo/manifests/: contains uncommitted changes 这样的错误提示。从字面意思上看是代码有改动但是没有commit。但好几次我查看了代码,把改动通...
                            
                            
                                分类:
其他好文   时间:
2014-05-24 17:56:58   
                                阅读次数:
451