agora inbox for postgres@postgres.berkeley.edu
help / color / mirror / Atom feedTell me about.
2+ messages / 2 participants
[nested] [flat]
* Tell me about.
@ 1995-01-18 16:09 Drunkard Terry <yutaka-i@is.aist-nara.ac.jp>
0 siblings, 1 reply; 2+ messages in thread
From: Drunkard Terry @ 1995-01-18 16:09 UTC (permalink / raw)
To: legacy
I have some questions.
Please give me info.
1: When I use "append" command as such situation below..
monitor -TN -c "append ***** " dbname
or
monitor -TN -c " ***** " dbname
Any method for inserting the filename or script in ***** ?
2: How to add/delete the attribute from the class?
If can't, I have only way [remodify the class] ?
so,how to copy the data in attribute ? > question 3
3: When I add the new attribute in the class,
Any method for copy the old attribute data
to the new"same"attribute ?
for example..
[old] class | attribute (data)
-------------------------------------------
EMP | name = "Joe","Sam","Bill"
| salary = 1000,2000
[new] class | attribute (data)
-------------------------------------------
EMP | name = ""
| salary = ""
| age = "" /* new added attribute */
The data in old attribute(name,salary) move in
new "same name" attribute, HOW?
---
: Drunkard Terry <yutaka-i@is.aist-nara.ac.jp>
: Graduate School of Information Science
: Nara Institute of Science and Technology
==============================================================================
To add/remove yourself to/from the POSTGRES mailing list: send mail with
the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU".
If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
a human will deal with it. DO NOT post to the "postgres" mailing list.
==============================================================================
URL: http://s2k-ftp.CS.Berkeley.EDU:8000/postgres/
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Tell me about.
@ 1995-01-25 09:43 Paul M. Aoki <aoki@cs.berkeley.edu>
parent: Drunkard Terry <yutaka-i@is.aist-nara.ac.jp>
0 siblings, 0 replies; 2+ messages in thread
From: Paul M. Aoki @ 1995-01-25 09:43 UTC (permalink / raw)
To: yutaka-i@is.aist-nara.ac.jp; +Cc: legacy
Drunkard Terry <yutaka-i@is.aist-nara.ac.jp> writes:
> 1: When I use "append" command as such situation below..
> monitor -TN -c "append ***** " dbname
> or
> monitor -TN -c " ***** " dbname
> Any method for inserting the filename or script in ***** ?
i would use the copy command here, since that (1) does all of the
insertions in a single transaction and (2) is used with an input file.
> 2: How to add/delete the attribute from the class?
> If can't, I have only way [remodify the class] ?
> so,how to copy the data in attribute ? > question 3
you can add attributes using "addattr". you can't remove attributes.
you can dump the data out and load it back into a new class, of
course, but then the oids of each row won't be the same.
> 3: When I add the new attribute in the class,
> Any method for copy the old attribute data
> to the new"same"attribute ?
> The data in old attribute(name,salary) move in
> new "same name" attribute, HOW?
if i understand the question, then this is what always happens when
using "addattr" (old rows keep their old attribute values and have
null values in the new attributes).
--
Paul M. Aoki | University of California at Berkeley
aoki@CS.Berkeley.EDU | Dept. of EECS, Computer Science Division (#1776)
| Berkeley, CA 94720-1776
==============================================================================
To add/remove yourself to/from the POSTGRES mailing list: send mail with
the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU".
If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
a human will deal with it. DO NOT post to the "postgres" mailing list.
==============================================================================
URL: http://s2k-ftp.CS.Berkeley.EDU:8000/postgres/
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~1995-01-25 09:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1995-01-18 16:09 Tell me about. Drunkard Terry <yutaka-i@is.aist-nara.ac.jp>
1995-01-25 09:43 ` Paul M. Aoki <aoki@cs.berkeley.edu>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox