473,480 Members | 1,871 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Columns and Fields are the same?

15 New Member
Hi, please clear up something thats been confusing me regarding a database. Are database columns the same as database fields, if so why are there two ways to drop them? For example to delete a field the syntax is DELETE from [table name] where [field name] = 'whatever';, and to delete a column the syntax is alter table [table name] drop column [column name]; If they are same why are there two ways to do the same thing? Thanks for your help.
Aug 1 '07 #1
1 1643
ilearneditonline
130 Recognized Expert New Member
Hi, please clear up something thats been confusing me regarding a database. Are database columns the same as database fields, if so why are there two ways to drop them? For example to delete a field the syntax is DELETE from [table name] where [field name] = 'whatever';, and to drop a column the syntax is alter table [table name] drop column [column name]; I If they are same why are there two ways to do the same thing? Thanks for your help.
They are not the same thing. When you DROP a column, you are not deleting the data only, but removing the column from the table. When you DELETE, you are deleting records from the table. The table Schema remains intact.

If you are familar with Excel, then this is how you can think of it.

A is a column, you can highlight the entire column, you can hide it, etc.
A1 is a cell or in the case of a db, a field. When you delete that one cell, it doesn't affect the cells below it.


Hope that helps.
Aug 1 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
12795
by: SL_McManus | last post by:
Hi All; I am fairly new to Perl. I have a file with close to 3000 lines that I would like to split out in a certain way. I would like to put the record type starting in column 1 for 2 spaces,...
3
4998
by: Dave Crypto | last post by:
Hi There, SUMMARY: I need to know what the actual maximum date limit possible on a row of a MYSQL database. MORE DETAILS: For example, does a MYSQL database only allow 4032 bytes of data...
3
2285
by: Chuck Reed | last post by:
I am working on a sales report where I show weekly sales by category for each of the 52 weeks in the year. Each record in my table/report has the 52 weeks of sales in it. I want to highlight to top...
0
1234
by: Raposa Velha | last post by:
Posting a solution to a problem I had. In the the following code I was getting an error something like "80004005 too many columns selected" After long time searching the a2k help and this NW, I...
1
1473
by: pau | last post by:
I am an Access beginner and would like to find out how to change lines into columns. This is what my imported table looks like (this is only one record of the table) Field1 Field2 PT J...
2
3389
by: Will | last post by:
I have a table, tblManinstructions with fields Code & InstructionID, one Code can have many InstructionID. I also have tblinstructions (fields instructionID & instruction). What I want to do is...
2
4239
by: ghat12 | last post by:
Hi, I am trying to print a subform containing approx 50 columns in datasheet view. The printout cannot fit more than 8-10 columns. Does anyone know of any way to print all columns; i don't care...
17
7608
by: vish | last post by:
Hi all, I know this might look strange at first look, but i am looping thru a dataset created using to different tables from database.These two tables have some fields with the same names. ...
3
1655
by: musicloverlch | last post by:
I have been given a database with 2,944 tables in it. Each table has 35 rows and columns labeled Dur, 20, 21, 22, 23, 24, 25, 26 ..... 64, 65. They contain insurance rates by age and band. ...
0
6908
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7048
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7088
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6741
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5342
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4783
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4485
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2986
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.