上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页

2019年12月31日

判断2进制 第n位 是否为1 (0)

摘要: int r = 10 >> 6; //byte r1 = 1; if ((r &1) == 1) { //为1 }else{ //为0 } 阅读全文

posted @ 2019-12-31 15:50 马什么梅 阅读(583) 评论(0) 推荐(0) 编辑

2019年12月24日

SQL server CAST() 格式化变量

摘要: 我们将时间转为float格式 SELECT CAST(getdate() AS float); Result:43821.27650285494 同样我们可以转换回时间 SELECT CAST(43821.27650285494 AS DateTime); Result:2019-12-24 06: 阅读全文

posted @ 2019-12-24 14:50 马什么梅 阅读(1111) 评论(0) 推荐(0) 编辑

2019年12月23日

SQL CONVERT() 时间转字符串

摘要: CONVERT(varchar,event_time,120) as event_time Without centuryWith centuryInput/OutputStandard 0 100 mon dd yyyy hh:miAM/PM Default 1 101 mm/dd/yyyy US 阅读全文

posted @ 2019-12-23 16:56 马什么梅 阅读(1244) 评论(0) 推荐(0) 编辑

2019年12月21日

C# 不包含 AsEnumerable 的定义

摘要: 引用 System.Data.DataSetExtensions 引用右键 ->添加引用 ->搜索 DataSetExtensions ->添加 注意版本 阅读全文

posted @ 2019-12-21 11:45 马什么梅 阅读(1030) 评论(0) 推荐(0) 编辑

Table to List<object> C#

摘要: 我们有 myobj 是这样的 我们有 myobj 是这样的 我们有 myobj 是这样的 public class MyObj { public string Name { get; set; } public int ID { get; set; } } 再数据库查询后的datatable我们想把 阅读全文

posted @ 2019-12-21 11:39 马什么梅 阅读(394) 评论(0) 推荐(0) 编辑

2019年12月13日

Edge Beta 进入无痕模式 快捷方式

摘要: “浏览器路径” -InPrivate 在快捷方式的路径后加 -InPrivate 就可以了 阅读全文

posted @ 2019-12-13 17:05 马什么梅 阅读(1220) 评论(0) 推荐(0) 编辑

2019年11月29日

C# 按行读取文件 从某行开始取

摘要: int i = 0; FileStream fs = new FileStream(e.FullPath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite); using (StreamReader sr = new StreamReader(fs, System.Text.Encoding.Default)) { while (sr.Pee 阅读全文

posted @ 2019-11-29 13:24 马什么梅 阅读(4283) 评论(0) 推荐(0) 编辑

2019年11月6日

Navicat连接oracle,出现Only compatible with oci version 8.1

摘要: 与本地oracle连接的时候,一般没问题,sqlplus和oci都是本地oracle自带的,(设置: 工具->选项->oci)分别为: oci:D:\app\pcman\product\11.2.0\dbhome_1\BIN\oci.dll Sqlplus: D:\app\pcman\product 阅读全文

posted @ 2019-11-06 17:27 马什么梅 阅读(1027) 评论(0) 推荐(0) 编辑

2019年10月31日

未能找到 System.Web.Helpers

摘要: This question is a bit old but here's a simple solution - Microsoft seemed to just move this library to a Nuget package called "microsoft-web-helpers" 阅读全文

posted @ 2019-10-31 16:19 马什么梅 阅读(662) 评论(0) 推荐(0) 编辑

2019年10月21日

js json 排序

摘要: 本例主要实现 中文汉字按拼音排序的方法和英文按照首字母排序的方法。 要排序的数据: 根据汉字拼音排序 这里要用到一个字符串方法: localeCompare() 方法 定义和用法 用本地特定的顺序来比较两个字符串。 语法 返回值 说明比较结果的数字。如果 stringObject 小于 target 阅读全文

posted @ 2019-10-21 15:21 马什么梅 阅读(3317) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页

导航