dbs:apple-notes
| ylbtech-dbs:apple-notes |
-- =============================================
-- apple_备忘录
-- auhtor:Yuanbo
-- 8:54 2016/8/22
-- =============================================
| 1.A,数据库关系图(Database Diagram) 返回顶部 |
| 1.B,数据库设计脚本(Database Design Script)返回顶部 |
1.B.1, 第一版本
-- =============================================
-- apple_备忘录
-- auhtor:Yuanbo
-- 8:54 2016/8/22
-- =============================================
USE master
GO -- Drop the database if it already exists
IF EXISTS (
SELECT name
FROM sys.databases
WHERE name = N'AppleNotes'
)
DROP DATABASE AppleNotes
GO CREATE DATABASE AppleNotes
GO
use AppleNotes
go
-- =============================================
-- 文件夹
-- auhtor:Yuanbo
-- 规则:用户默认有一个“Notes",不许修改,新添加可以删除
-- 新建文件夹删除:
-- 1、删除文件夹和记录;
-- 2、仅删除文件夹,如果该文件夹存在记录,则转移到“Notes”下,文件夹转移。
-- 文件夹顺序:备忘录、[自定义文件夹]、最新删除
-- 8:54 2016/8/22
-- =============================================
create table Folder
(
folderId uniqueidentifier primary key, --编号【UI、PK】
name varchar(200) --名称
)
go
-- =============================================
-- 备忘录
-- auhtor:Yuanbo
-- 8:54 2016/8/22
-- =============================================
create table Note
(
noteId uniqueidentifier primary key, --编号【UI、PK】
content varchar(2000), --正文
additionalText varchar(200), --附加文本
pubdate datetime, --更新日期(创建日期/最后一次修改日期)
flagDel bit, --是否删除:0=未删除;1=已删除
folderId uniqueidentifier references Folder(folderId) --文件ID【UI、FK】
)
1.B.2,
| 1.C,功能实现代码(Function Implementation Code)返回顶部 |
![]() |
作者:ylbtech 出处:http://ylbtech.cnblogs.com/ 本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。 |
dbs:apple-notes的更多相关文章
- Unity3D Optimizing Graphics Performance for iOS
原地址:http://blog.sina.com.cn/s/blog_72b936d801013ptr.html icense Comparisons http://unity3d.com/unity ...
- iOS Hardware Guide
来自U3D文档 Hardware models The following list summarizes iOS hardware available in devices of various g ...
- aravel 之父 Taylor Otwell :我是如何工作的
知名 PHP Web 开发框架 Laravel 之父 Taylor Otwell 发文描述了自己的日常工作状态:全职做 Laravel ,朝八晚五,使用 Sublime Text 3 写代码,终端使用 ...
- mac常用快捷键,Mac文件重命名快捷键,Mac OS快速访问系统根目录, MacOS 10.11重要数据的存储位置大全
command+r,相当于F5,刷新页面 command+F5,启动voiceover command+q 关闭当前程序 在Finder中command+/ 打开底部状态栏,可以查看剩余磁盘空间大小 ...
- iOS SDK Release Notes for iOS 9 iOS9 SDK 版本更新说明
Important: This is a preliminary document for an API or technology in development. Apple is supplyin ...
- http://www.apple.com/customer-letter/
Typora Writingshtml, body {overflow-x: initial !important;}html { font-size: 14px; } body { margin: ...
- 05 Go 1.5 Release Notes
Go 1.5 Release Notes Introduction to Go 1.5 Changes to the language Map literals The Implementation ...
- 网络电话pjsip Getting Started: Building for Apple iPhone, iPad and iPod Touch
Getting Started: Building for Apple iPhone, iPad and iPod Touch ¶ Getting Started Preparation Get th ...
- iOS 9的新的改变 iOS SDK Release Notes for iOS 9 说了些改变
iOS 9的新的改变 iOS SDK Release Notes for iOS 9 说了些改变 看了下还算能理解!!!有兴趣可以看看哈!!!不喜勿喷!!后面的对于废除的方法什么有用感觉!!! ...
- 转换到 StoryBoard 的公布说明(Converting to Storyboards Release Notes)
转换到 StoryBoard 的公布说明(Converting to Storyboards Release Notes) 太阳火神的漂亮人生 (http://blog.csdn.net/opengl ...
随机推荐
- 跟上节奏 大数据时代十大必备IT技能(转)
新的想法诞生新的技术,从而造出许多新词,云计算.大数据.BYOD.社交媒体……在互联网时代,各种新词层出不穷,让人应接不暇.这些新的技术,这些新兴应用和对应的IT发展趋势,使得IT人必须了解甚至掌握最 ...
- CentOS6.4安装Golang环境
什么是Go? Go是一门并发支持.垃圾回收的编译型的系统编程语言,目的是为了创造一门具有在静态编译语言的高性能和动态语言的高效开发之间拥有良好平衡点的一门编程语言. Go的主要特点有哪些? 类型安全和 ...
- memory CPU cache books
http://www.amazon.com/Consistency-Coherence-Synthesis-Lectures-Architecture/dp/1608455645/ref=pd_sim ...
- 使用 margin 让div块内容居中
问:有一个div块,其width为300px,如何设置margin让div块居中显示? 答:margin设置为 margin:0 auto,即div块的上下外边距设置为 0 , 左右外边距设置为 自动 ...
- 向左对齐的Gallery
系统自带的Gallery选中的item总是在组件的中间.但是有些时候我们需要把选中的元素放在左边或者是Gallery一出来就要放在左边.修改Gallery靠左对齐的思路:1.Gellary总是对cen ...
- Oracle数据库概述
Oracle是一种RDBMS(Relational Database Management System 关系型数据库管理系统),是Oracle公司的核心产品. 2009年4月,Oracle并购了Su ...
- x2go
单词解析 productivity n. 生产力:生产率:生产能力seamlessly adv. 无缝地roam constantly 经常漫游agility and flex ...
- unity, 使导入的材质名与3dmax中一致
在fbx的Import setting的model选项页中:
- eclipse svn subclipse下载地址
http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240 Eclipse 3.x Subclipse release ...
- eclipse中复制项目更名注意事项
一.更改项目名称 web project Settings; 二.pom.xml中的项目名称更改
