-
Notifications
You must be signed in to change notification settings - Fork 0
/
ScriptAuxiliar.R
95 lines (45 loc) · 1.9 KB
/
ScriptAuxiliar.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#Serve para preencher o banco de dados rapidamente
require(sqldf)
db <- dbConnect(SQLite(), dbname="C:/Users/dalton.pinheiro/Documents/manchester/web/db.sqlite3")
dbListTables(db)
dbListFields(db, "formulario_dimdiscriminador" )
tabela<- read.table("clipboard",sep="\t")
tabela<-data.frame(id=c(1:nrow(tabela)),DescDiscriminador=tabela$V1)
View(tabela)
dbWriteTable(conn = db, name = "formulario_dimdiscriminador",
value = tabela, row.names = FALSE,append=T)
tabela<- read.table("clipboard",sep="\t")
tabela<-data.frame(id=c(1:nrow(tabela)),DescFluxograma=tabela$V1)
View(tabela)
dbListFields(db, "formulario_dimfluxograma" )
dbWriteTable(conn = db, name = "formulario_dimfluxograma",
value = tabela, row.names = FALSE,append=T)
tab<-"formulario_dimclassificador"
dbListFields(db, tab )
tabela<- read.table("clipboard",sep="\t")
tabela<-data.frame(id=c(1:nrow(tabela)),DescClassificador=tabela$V1)
View(tabela)
dbWriteTable(conn = db, name = tab,
value = tabela, row.names = FALSE,append=T)
tab<-"formulario_dimespecialidade"
dbListFields(db, tab )
tabela<- read.table("clipboard",sep="\t")
tabela<-data.frame(id=c(1:nrow(tabela)),DescEspecialidade=tabela$V1)
View(tabela)
dbWriteTable(conn = db, name = tab,
value = tabela, row.names = FALSE,append=T)
tab<-"formulario_dimprocedencia"
dbListFields(db, tab )
tabela<- read.table("clipboard",sep="\t")
tabela<-data.frame(id=c(1:nrow(tabela)),DescProcedencia=tabela$V1)
View(tabela)
dbWriteTable(conn = db, name = tab,
value = tabela, row.names = FALSE,append=T)
tab<-"formulario_dimchegada"
dbListFields(db, tab )
tabela<- read.table("clipboard",sep="\t")
tabela<-data.frame(id=c(1:nrow(tabela)),DescChegada=tabela$V1)
View(tabela)
dbWriteTable(conn = db, name = tab,
value = tabela, row.names = FALSE,append=T)
dbDisconnect(db)