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 ...
随机推荐
- Linux-dd命令详解【转】
转自http://www.cnblogs.com/dkblog/archive/2009/09/18/1980715.html Linux-dd命令详解 dd 是 Linux/UNIX 下的一个非 ...
- Awesome Deep Vision
Awesome Deep Vision A curated list of deep learning resources for computer vision, inspired by awes ...
- faster rcnn test demo ---repaired for video input and save the image, label, score et al. into .mat format
faster rcnn test demo ---repaired for video input and save the image, label, score et al. into .mat ...
- mysql optimization
EXPLAIN 命令详解 http://www.cnblogs.com/gomysql/p/3720123.html http://www.cnblogs.com/Aiapple/p/5697229. ...
- datagrid中load,reload,loadData方法的区别
它有其中有load,reload,loadData这三个方法,它们都有相同的功能,都是加载数据的,但又有区别. load方法,比如我已经定义一个datagrid的id为grid,那这个方法的使用方式为 ...
- form表单回车提交问题,JS监听回车事件
我们有时候希望回车键敲在文本框(input element)里来提交表单(form),但有时候又不希望如此.比如搜索行为,希望输入完关键词之后直接按回车键立即提交表单,而有些复杂表单,可能要避免回车键 ...
- SQL 语句中的With(index())
SELECT m.Member_No, m.FirstName, m.Region_No FROM dbo.Member AS m WITH (INDEX (0)) 强制使用找到的第一个索引. 其 ...
- Java_数组
一.java数组 1.数组定义:数组就是形象于一个容器(容器即可理解为:装东西的容器) 2.数组特征:数据是连续的,分配大小固定,数组中数据类型完全一致 创建规则:int[] arr = new in ...
- Hive(七):HQL DML
HQL DML 主要涉到对Hive表中数据操作,包含有:load.INSERT.DELETE.EXPORT and IMPORT,详细资料参见:https://cwiki.apache.org/con ...
- 【linux】 linux 查看系统信息
1.输入"uname -a ",可显示电脑以及操作系统的相关信息. 2.输入"cat /proc/version",说明正在运行的内核版本. 3.输入" ...
