Jump to content

[SOLVED] select all except from MySQL


ShiloVir

Recommended Posts

is there a way to select all data from MySQL except for 1 field. See, in the MySQL conn I got about 200 columbs. is there a way to select all data except for the 'password' columb. This is the code im using atm:

 

<?php
$sql = "SELECT * FROM auth_users LIMIT $offset, $rowsperpage";   
$result = mysql_query($sql, $conn) or trigger_error("SQL", E_USER_ERROR);  
?>

Link to comment
https://forums.phpfreaks.com/topic/134310-solved-select-all-except-from-mysql/
Share on other sites

First off, if you have 200 columns in 1 table I'd sit down and reconsider your table structure.  There's more than likely any number of ways to break that down into several tables.  But disregarding all that, if you have 200 tables and you are going to actually use all but 1, then you may as well just select *. 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.