2011 11 14,聯絡人,資料表SQL

2021-06-01 19:38:54 字數 1703 閱讀 7132

1、聯絡人表

create table [dbo].[contactlist](

[contactid] [int] identity(1,1) not null,

[contactname] [nvarchar](10) not null,

[contactmp] [varchar](15) null,

[contactsecphone] [varchar](15) null,

[contactthirphone] [varchar](15) null,

[contactaddress] [nvarchar](50) null,

[contactemail] [nvarchar](40) null,

constraint [pk_custompersonlist] primary key clustered

(

[contactid] asc

)with (pad_index  = off, statistics_norecompute  = off, ignore_dup_key = off, allow_row_locks  = on, allow_page_locks  = on) on [primary]

) on [primary]

2、聯絡人組表

create table [dbo].[contactgroup](

[groupid] [nvarchar](10) not null,

[contactid] [int] not null,

[defaultid] [bit] null,

[grouptype] [nvarchar](10) null,

constraint [pk_groupcontact] primary key clustered

( [groupid] asc,

[contactid] asc

)with (pad_index = off, statistics_norecompute = off, ignore_dup_key = off, allow_row_locks = on, allow_page_locks = on) on [primary]

) on [primary]

3、檢視
select     dbo.contactgroup.groupid, dbo.contactgroup.contactid, dbo.contactgroup.defaultid, dbo.contactgroup.grouptype, dbo.contactlist.contactname, 

dbo.contactlist.contactmp, dbo.contactlist.contactsecphone, dbo.contactlist.contactthirphone, dbo.contactlist.contactaddress,

dbo.contactlist.contactemail

from dbo.contactgroup inner join

dbo.contactlist on dbo.contactgroup.contactid = dbo.contactlist.contactid

Android 聯絡人資料庫表詳解

更多 1.首先手機新增幾個聯絡人 2.然後在此路徑下可以找到檔案 data data com.android.providers.contacts databases contact2.db 3.匯出檔案,將其匯入視覺化資料庫管理器當中 這裡用的是sqlite expert personal 我去。...

程式中呼叫聯絡人資料

首先新增乙個許可權 發起乙個 contact picker intent intent new intent intent.action pick,people.content uri startactivityforresult intent,pick contact 重寫方法 override ...

Android中訪問聯絡人資料示例

聯絡人提供了自己contentprovider,因此可以使用contentresolver來訪問它的資料。舉例來說 建立乙個隱式intent final intent pickintent new intent intent.action pick,contactscontract.contacts...