Solved

Script files

Posted on 2002-05-31
5
180 Views
Last Modified: 2010-04-04
What are script files? How do I use script files to create and delete tables.
How do I load data into tables using script files. PLEASE CAN YOU PROVIDE A EXAMPLE. I WANT TO USE INTERBASE.
tHANK YOU
0
Comment
Question by:mamello
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 9

Expert Comment

by:ITugay
ID: 7046469
Hi mamello@devx,

run IBConsole, connect to database and use Database | View metadata.
there is good sample to explore scripts.

-------
Igor
0
 
LVL 7

Accepted Solution

by:
Motaz earned 50 total points
ID: 7046472
did you mean SQL statements:

to create table:
open Interbase Console, select your database and write and execute:

create table Friends (FriendID integer not null primary key, Name VarChar(20), Address VarChar(30));

to Insert data:

insert into Friends values (1, 'Motaz', 'Sudan');
or
insert into Friends (FriendID, Name) values (2, 'John');

to retreive data:

select * from Friends

Motaz
0
 
LVL 1

Assisted Solution

by:thegroup
thegroup earned 50 total points
ID: 7047322
A script is any sequence of actions a SQL Engine could interpret an act on.
The scripts come in two flavors. DDL and DML (Data Definition Languaje and Data Manipulation Languaje)

DDL lets you create and alter data "structures" like create tables, index, drop procedures and so on (create table "name" ..., drop procedure "test")

DML lets you act on "data" itself, doing querys, updating values, deleting. (select * from "name", update "name" set field = "value" where "logical condition".

Delphi send those scripts to the SQL Engine that interprets and execute them.

Hope I'm clear (english is not my native languaje)
0
 
LVL 1

Expert Comment

by:pnh73
ID: 9010383
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Split between thegroup and Motaz

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Paul (pnh73)
EE Cleanup Volunteer
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question