sql function and store process: create function [dbo].[fun_splitin](@c varchar(),@split varchar()) returns @t table(col varchar()) as begin ) begin insert @t(col)values (substring(@c,,charindex(@split,@c)-)) ,charindex(@split,@c),'') end insert @t(co…
insert goodlocation: CREATE PROCEDURE [dbo].[sp_insert_goodlocation] -- Add the parameters for the stored procedure here @the_plattoon int, @the_column int, @the_floor int AS begin try begin tran BEGIN -- SET NOCOUNT ON added to prevent extra result…
extraction from The C++ Programming Language, 4th. edition, Bjarne Stroustrup If no initializer is specified, a global, namespace, local static, or static member (collectively called static objects) is initialized to {} of the appropriate type. We cl…
Competing in a data science contest without reading the data Machine learning competitions have become an extremely popular format for solving prediction and classification problems of all sorts. The most famous example is perhaps the Netflix prize.…
尽量别直接用 DBObject ,Spring data mongodb 的api 本来就没什么多大用处,如果还直接用 DBObject 那么还需要自己去解析结果,说动做个对象映射,累不累 Spring data mongodb 唯一好处就是,不需要自己decode encode,其他别的几乎也没了 DBObject project = new BasicDBObject("$project", new BasicDBObject("_id", 1) .appen…