06 2011 档案
摘要:数据库样式,如图:要实现的功能是:例如:传入一个河南省的编号(410000),则查出表中所有是河南省下属的记录,因为数据库编号中,涉及逗号,所以要对编号进行分割实现代码如下:set ANSI_NULLS ONset QUOTED_IDENTIFIER ONgo-- =============================================-- Author: <Author,,Name>-- Create date: <Create Date, ,>-- Description: <Description, ,>-- ============
阅读全文
摘要:1. 将字符串“I am a good man” 输出为:“man good a am I”usingSystem;namespaceConsoleApplication3{classProgram{staticvoidMain(string[]args){stringstr="Iamagoodman";string[]arrayStr=str.Split(''); //将字符串截取后存入数组中Array.Reverse(arrayStr); //反序数组元素foreach(variteminarrayStr){Console.WriteLine(item)
阅读全文
摘要:--sql对字符串的处理能力比较弱,比如我要循环遍历象1,2,3,4,5这样的字符串,如果用数组的话,遍历很简单,但是t-sql不支持数组,所以处理下来比较麻烦。下边的函数,实现了象数组一样去处理字符串。一,用临时表作为数组create function f_split(@c varchar(2000),@split varchar(2)) returns @t table(col varchar(20)) as begin while(charindex(@split,@c)<>0) begin insert @t(col) values (substring(@c,1,char
阅读全文
摘要:<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CasMenu.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xml
阅读全文

浙公网安备 33010602011771号