?
Solved

Script files

Posted on 2002-05-31
5
Medium Priority
?
183 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 200 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 200 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

719 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