What do you want to save?
Add Code snippet
New code examples
-
SQL 2021-11-17 00:18:13
sql server convert to guid
DECLARE @uuid VARCHAR(50) SET @uuid = 'a89b1acd95016ae6b9c8aabb07da2010' SELECT CAST( SUBSTRING(@uuid, 1, 8) + '-' + SUBSTRING(@uuid, 9, 4) + '-' + SUBSTRING(@uuid, 13, 4) + '-' + SUBSTRING(@uuid, 17, 4) + '-' + SUBSTRING(@uuid, 21, 12) ... Add solution -
TypeScript 2021-11-15 01:54:14
typescript config
//type config configuration { "compilerOptions": { "outDir": "dist", "target": "ESNext", "module": "CommonJS", "moduleResolution": "node", "esModuleI... Add solution -
Java 2021-11-15 00:48:13
java random primary key
String id = UUID.randomUUID().toString(); Add solution -
Go 2021-11-13 04:34:25
include relation in mongo query
db.user.aggregate([ { $project: { "userId": 1, "userKeyEncrypted": 1, "uuid":1, "roles": 1, "passwordHash": 1, "disabled": 1, companyRefs: { $let: { vars: { refParts: { $objectToArray: "... Add solution -
Javascript 2021-11-11 06:26:19
javascript uniqie id
function uuid() { return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8); return v.toString(16); }); } var userID=uuid();//something like: &qu... Add solution